开发者

How to change the baseline of an UITextField?

开发者 https://www.devze.com 2022-12-21 09:37 出处:网络
开发者_运维技巧How would you change the baseline of any text entered in a UITextField?The precise answer eludes me, but you can set the textField\'s vertical content alignment like this:
开发者_运维技巧

How would you change the baseline of any text entered in a UITextField?


The precise answer eludes me, but you can set the textField's vertical content alignment like this:

textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
0

精彩评论

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

关注公众号