Want to offer native, in-app customer service to your users? Get going quickly with Zendeskโ€™s Mobile SDK. Save $177 with coupon code LBOC.

Topics

#15: FontBlaster ๐Ÿ“„

Topics

FontBlaster is probably one of the simplest things we'll cover in these bites.

Don't be fooled though, it is one of the most useful little utilities and has quickly made its way into my "standard set" of third-party I use in all my new projects.

Adding a custom font to an iOS app is normally just a little cumbersome:

๐Ÿ˜ First drag the font file(s) into Xcode

๐Ÿ˜ Open up your Info.plist

๐Ÿ˜’ Add a new key for "Fonts provided by application"

๐Ÿ˜ฒ Find the exact names of each font that iOSโ€™s font system wants to hear, adding items in the .plist for each

๐Ÿ˜ญ Watch as loading them all slows down your appโ€™s initial launch

With FontBlaster, all you have to do is make sure your custom font files are added to your app's main bundle then call this method anywhere in your app:

FontBlaster.blast()

More info about FontBlaster can be found at git.io/fontblaster

Authors Note

Hey everyone, first off the response to little bites has been absolutely incredible. I'd like to thank every single one of you for reading, responding, retweeting, requesting, etc. as I get things off the ground here.

Second, I'd like to let everyone know that there will be no bites published next week as I'll be busy attending Apple's Worldwide Developer Conference learning what is sure to be tons of exciting new things that Iโ€™ll get to cover here in the coming months.

If you're going to be at the conference as well, reach out on Twitter, I'd love to meet and talk to as many of you all as I can! ๐Ÿ‘

Bites will resume their regular schedule starting Monday June, 15th.

Cheers! ๐Ÿซ
- Jake