在 Xcode 6/iOS 8 Interface Builder Launch Screen 中使用自定义字体 [英] Using custom fonts with Xcode 6 / iOS 8 Interface Builder Launch Screen
问题描述
我正在使用基于 Xcode 6 的新界面构建器 学到了一些可能相关的东西:
TIL:iOS 8 有自己的守护程序,用于显示基于 xib 的启动图像,称为 splashboardd.所以这个 xib 运行在你的范围之外."
你真的把它添加到 plist 文件了吗?
以下是如何执行此操作的简短介绍:http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
您好,亚历克斯
实际上,我尝试使用界面 Builder 将我自己的字体添加到我的字体中,但它不起作用.好像是bug...这个错误只在我使用属性字符串时出现
I'm using Xcode 6’s new interface builder-based launch images, and am running into an issue.
I created a new interface builder file by selecting New File, Launch Screen, which created a .xib
file in my project.
I then designed my launch screen, and everything works great, except: I have a custom font, which I’ve assigned to a UILabel
in Interface Builder. The font appropriately appears in Interface Builder, but when the .xib
is used to generate launch images, the system font is used.
Any ideas?
Update 2014-09-16
I learned something on Twitter from @flo_muc that might be relevant:
Did you actually added it to the plist File?
Here's a short introduction how to do this: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
Greetings, Alex
EDIT: Actually I tried to add my own fonts to my with the interface Builder and it doesn't work. Seems to be a bug... This bug only appears, when I use an attributed String
这篇关于在 Xcode 6/iOS 8 Interface Builder Launch Screen 中使用自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!