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;
精彩评论