[英]iOS Autolayout font adjustment with device size (iPhone 6 plus, iPhone 6, iPhone 5)
I am using autolayout and setting font in UILabel, or UITextField in wAny hAny size class. 我正在使用自动布局并在UILabel或wAny hAny size类的UITextField中设置字体。
Font looks good in iPhone 6 plus but on iPhone 5 its size does not change. 字体在iPhone 6 plus中看起来不错,但在iPhone 5上它的大小没有变化。
If we take example of UILabel, I set horizontal center and verticle center without giving width and Height. 如果我们以UILabel为例,我设置了水平中心和垂直中心而没有给出width和Height。
How to make its font responsive with particular device size of iPhone. 如何使其字体响应iPhone的特定设备尺寸。
Cheers 干杯
There is 2 solutions: 有两种解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.