[英]App fonts changed when running from Xcode 8
I have designed my storyboard in Xcode 7
and it's looking fine across all devices. 我已经在Xcode 7
设计了情节Xcode 7
,在所有设备上看起来都不错。 I set the fonts from Interface Builder but when I run the app from Xcode 8 beta
in iOS 9.x
, the button's
and label's
fonts are changed automatically. 我从Interface Builder设置了字体,但是当我从iOS 9.x
Xcode 8 beta
运行应用程序时, button's
和label's
字体会自动更改。 Is it a bug in Xcode 8 beta
? 这是Xcode 8 beta
的错误吗? Also, is there any way to fix this issue without changing every components fonts manually? 此外,是否有任何方法可以解决此问题而无需手动更改每个组件的字体?
I have the same issue in Xcode 8 release with iOS 10. In the app built for iOS 10 in Xcode 8 running on iOS 9.3 both simulator and on a real device 6plus the font size decreases in size. 我在iOS 10的Xcode 8版本中遇到了相同的问题。在iOS 10模拟器和真实设备6plus上同时运行于iOS 9.3的Xcode 8中为iOS 10构建的应用程序中,字体大小减小了。 Oddly enough running on an iPad Running the same build in iOS 10 everything is fine. 在iPad上运行的奇怪程度足以在iOS 10中运行相同的版本。 This is a iPhone app, not universal. 这是iPhone应用程序,不通用。
[Edit] - If I check Check the "Selectable" checkbox in the xib attribute inspector the problem goes away. [编辑]-如果我选中xib属性检查器中的“可选”复选框,问题将消失。 This is for a read-only UITextView. 这是用于只读的UITextView。 Interesting. 有趣。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.