How to change font size for iPhone 4 and IPhone 5 in auto-layout?

杀马特。学长 韩版系。学妹 提交于 2019-12-19 11:24:38

问题


I am trying to change font size of uilabel for iphone 4 and iphone 5 using autolayout and size classes. IB is giving option only for ipad and greater phones like iphone 6 and 6P .

If i change font for wR and hR then it changes fonts size for iphone 4 , 5 and 6 which is wrong in my case .

Please help me in this regard.


回答1:


Unfortunately , Apple Provides minimum consideration for all iPhone's(4,5,6,6p version) Portrait Mode Compact Width - Compact Height or Compact Width - Regular Height. So You can't specify Font Size separately for different iPhones in Portrait Mode from Storyboard.



来源:https://stackoverflow.com/questions/32087901/how-to-change-font-size-for-iphone-4-and-iphone-5-in-auto-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!