如何在自动布局中更改iPhone 4和iPhone 5的字体大小? [英] How to change font size for iPhone 4 and IPhone 5 in auto-layout?

查看:133
本文介绍了如何在自动布局中更改iPhone 4和iPhone 5的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用autolayout和size类更改uilabel for iphone 4和iphone 5的字体大小。 IB只为ipad和更大的手机提供选项,如iphone 6和6P。

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 .

如果我改变wR和hR的字体,那么它会改变iphone 4,5和5的字体大小6这在我的情况下是错误的。

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 .

请在这方面帮助我。

推荐答案

不幸的是,Apple提供所有iPhone(4,5,6,6p版本)纵向模式的最低考虑因素紧凑宽度 - 紧凑高度紧凑宽度 - 常规高度。因此,您无法在Storyboard中以纵向模式为不同的iPhone分别指定字体大小。

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.

这篇关于如何在自动布局中更改iPhone 4和iPhone 5的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆