In Xcode 6, just add the ttf file to your project and use it in the storyboard via custom fonts. If you directly want to use it in your code without using it in the storyboard, then you need to add the key "UIAppFonts" to projectName-Info.plist.
Example:
<key>UIAppFonts</key> <array> <string>Signika-Bold.ttf</string> <string>Signika-Regular.ttf</string> <string>Signika-Light.ttf</string> <string>Signika-Semibold.ttf</string> </array>
immediately before the line </dict> in the projectName-Info.plist file.
UIFont* font = [UIFont fontWithName:@"Signika-Regular" size:25];
ankurkumar Oct. 16 '14 at 16:59 2014-10-16 16:59
source share