Friday, 17 February 2012

Custom fonts in iOS


Ever wondered how to add a custom font to your application?
It turns out that it’s much easier then you think. 
Just add your font file (Kremlin.ttf) to your project. In your Info.plist file, create a key called Fonts provided by application and add your font/fonts as items in this array.
In your code you can now specify your custom font. 
[UIFont fontWithName:@"Kremlin" size:16.0]

No comments:

Post a Comment