简体   繁体   English

从Xcode 8运行时,应用程序字体已更改

[英]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'slabel'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.

相关问题 从Xcode项目运行应用程序时,Cocoapods链接器错误 - Cocoapods linker error when running app from Xcode project iOS 应用程序被 WatchDog 崩溃,但在从 Xcode 运行时可以正常工作 - iOS app crashes by WatchDog but works when running from Xcode 从App Store下载时,我的旧版本应用程序运行正常,使用Xcode运行时失败 - Old version of my app runs okay when downloaded from the App Store, fails when running with Xcode 运行应用程序时,xCode失去与设备的连接 - xCode loses connection to device when running app 从Xcode在设备上运行应用程序时,以前的应用程序安装会如何? - What happens to previous app installs when running an app on a device from Xcode? 如何检查应用程序是否正在从Xcode运行 - How to check if app is running from xcode 如果不是从 Xcode 运行,iOS 应用程序会立即崩溃 - iOS app crashes immediately if not running from Xcode 从Xcode在iPhone4上运行应用程序失败 - Running App on iPhone4 from Xcode fails 为什么从Testflight运行时此应用程序崩溃100%,也许从Xcode崩溃10% - Why would this app crash 100% when running from Testflight, maybe 10% from Xcode Flutter iOS 应用程序在从 ipa 文件启动时崩溃,但从 xCode 运行时工作正常 - Flutter iOS app crashes on start from ipa file, but works fine when running from xCode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM