Created
March 9, 2014 11:13
-
-
Save thoretton-edwin/9446220 to your computer and use it in GitHub Desktop.
iOS add custom font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In plist file : | |
1) add "Fonts provided by application" item in property list | |
2) drag the .ttf or .otf file in supporting file folder | |
Warning ! check case "add target" | |
3) add string item in Fonts provided by application array : example "myFont.ttf" | |
4) in the module : | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[titre setFont: [UIFont fontWithName:@"myFont" size:32]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment