Sometimes we add custom fonts to our xcode project.
For example:- Suppose TwCenMT-Bold.ttf is the font name which you have added to your xcode project, but when you access this font, it does not reflects.
*Reason:- * This font does not contains the same name in the xcode font family list.
Solution:- You can print the font names using the following code and can get the exact or correct name for your xcode project.
for (NSString *familyName in [UIFont familyNames]) {
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"%@", fontName);
}
}
0 Comment(s)