Here is a tip for how to add your own custom font to use in any iOS app just in 3 steps.
1) Add the font file to your resource bundle, the file extension will be “otf”. Here is a font file of STIXGeneral.
2) Add the font info in your application info.plist file, once added your info.plist file will look similar like below.
3) Then nothing, just use the font any where in your app as required. The one is shown below, similarly
[_myLabel setFont:[UIFont fontWithName:@”STIXGeneral” size:44]];
That's it now your UI shows your own custom font.
Thanks
Happy Coding.
No comments:
Post a Comment