English 中文(简体)
外地文本
原标题:Text Field rendering

I am trying to build a really simple NSTextField with Interface Builder (XCode 4), but the rendering is really weird with default values:
Current rendering

The only setting I changed is the border style:
enter image description here

www.un.org/Depts/DGACM/index_french.htm

How to display a neat Text Field “squared but with rounded corners”, like in Safari:
Safari Text Field

How tomov that “overflow:hidden” (sorry for the CSS presentation) whichdown the Focus? < Interface Buildinger bug, established.

我是否应该设计我自己的基于形象的内容?

谢谢!

最佳回答

I think I ve found exactly what you re looking for. Here s what it looks like: enter image description here

它称作SSText Field。 页: 1

问题回答

你在顶端的是NSSearch Field,用于过滤/研究。

同样,由于你把焦点放在一个箱子内,或把另一个物体重叠,因此切断了重点。 不要这样做。

不存在标准圆顶(而不是四舍五入)的案文领域;如果你想要一个,你需要下级 yourself,或者仅仅等到狮子,因为标准案文领域已经四舍五入。

四舍五入的案文领域相对简单,不需要对控制进行分类。 相反,你只能凌驾于控制的背景雇主。

选择平方位的实地形状,在您的项目中添加“QuartzCore”框架,然后加上#import <QuartzCore/QuartzCore.h>。 在你的控制器上viewDidLoad 页: 1 财产:

myTextField.layer.cornerRadius = 6.0;

波菲,环形案文领域!





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签