Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
233 views
in Technique[技术] by (71.8m points)

Using custom fonts with Xcode 6 / iOS 8 Interface Builder Launch Screen

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.

Launch Screen Creation

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:

“TIL: iOS 8 has it’s own deamon for displaying xib based launch images called splashboardd. So this xib is running outside of your scope.”

question from:https://stackoverflow.com/questions/25794314/using-custom-fonts-with-xcode-6-ios-8-interface-builder-launch-screen

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...