如何在自动布局中更改 iPhone 4 和 iPhone 5 的字体大小? [英] How to change font size for iPhone 4 and IPhone 5 in auto-layout?
问题描述
我正在尝试使用自动布局和大小类更改 iphone 4 和 iphone 5 的 uilabel 字体大小.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 和 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 版本)纵向模式提供了最低考虑 Compact Width - Compact Height
或 紧凑宽度 - 常规高度
.因此,您不能在 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屋!