开发者

Text field text drawn at bottom instead of centre

I'm working on an iPhone app and I've a problem: the text in my text field is开发者_开发问答 drawn at the bottom. Can any one help me to display it centered?


Use the following instruction:

textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜