Skip to content
IBCustomFonts category allows you to use custom fonts from Interface Builder (IB) when building your iOS apps. Apps using IBCustomFonts category are approved by Apple App Store (check readme.md on latest info). Tested on iOS6 - iOS11.
Branch: master
Clone or download
Latest commit 7ba60ee Nov 14, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Fonts Better organised folder structure Sep 24, 2013
IBCustomFonts.xcodeproj
IBCustomFonts
IBCustomFontsTests iOS 11 support Sep 24, 2017
.gitignore
LICENSE.md
README.md
UIFont+IBCustomFonts.m

README.md

About IBCustomFonts

IBCustomFonts category allows you to use custom fonts from Interface Builder (IB) when building your iOS apps.

  • Apps using IBCustomFonts category are approved by Apple App Store.

  • No need to use IBOutlets, subclassing of UILabels and UIButtons or change fonts in code.

  • Tested on iOS6 - iOS11.

Usage

  1. Add UIFonts+IBCustomFonts.m file to your Xcode project.

  2. Add custom fonts to your application as usual (don't forget to define them in your app Info.plist as Fonts provided by application array)

  3. Add new dictionary to your app Info.plist named IBCustomFonts and add to it key-value pairs where key is name of font used in IB and value is name of your custom font. For example: HelveticaNeue and CustomFont-Bold or HelveticaNeue-Italic and CustomFont-Italic

  4. In Interface Builder (IB) use HelveticaNeue in places where do you want to see your CustomFont-Bold (or HelveticaNeue-Italic in places where do you want to see your CustomFont-Italic) at runtime.

App Store acceptance

Please let me know if you have your app accepted or rejected on App Store by writing details to e-mail deni2s at hc.lv, so we can update this list with latest info.

You can’t perform that action at this time.