开发者

Text field text drawn at bottom instead of centre

开发者 https://www.devze.com 2023-03-04 22:27 出处:网络
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:

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

精彩评论

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

关注公众号