Search code examples
iosxcodeios5ios6interface-builder

Use iOS 6 font for iOS 5 NIB


I'm using Avenir, which is a font only available in iOS 6, in a project that supports iOS 5. I'm able to change the font when it's referenced in code, but I'm not sure how to change Avenir to Helvetica in the NIB files. Right now everything just defaults to system font, which is semi-acceptable except that all font sizes default to 17 regardless of their specified size in the NIB.

This is a project that has 40+ Nibs, so ideally I can find a solution that doesn't require manually editing each nib and its owner to add UILabel IBOutlets.

Thanks


Solution

  • You could purchase the font and include it in your application. That way you will have consistency with iOS5 and iOS6. I would say that is your easiest solution.

    Font

    Include custom font in application