How to embed custom font in iPhone application?

Solution:

Xcode 10 or greater if you add the font files into the project and it will be added directly when you try to set font in storyboard it will be listed.

But in previous time it was not possible.First you have to add the font file to your project.

After that open the Info.plist file and set the key named UIAppFonts
change the datattype to array and set the each fontfilename into that you had added already.

Save the Info.plist file

[UIFont fontWithName:@"CustomFontName" size:12] 

Then use the font as above.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift