miércoles, 6 de abril de 2016

iOS: Adding and using fonts

1) Add your custom font into your project , i.e. drag the font file into xCode project.
2) Edit Info.plist: Add a new entry with the key "Fonts provided by application".
3) For each of your files, add the FILE NAME including extention to this array
4) Open the font in Font Book(double click on your font in finder) to see what the real FONT NAME is.
5) yourLabel.font = [UIFont fontWithName:@"FONT NAME" size:SIZE];

No hay comentarios:

Publicar un comentario