Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1. Double check the fonts file are included in Target in Xcode
- // 2. Copy Bundles Resources
- // 3. Included on Info.plist of the app
- // 4. If still error, please check your font name with the following code.
- for (int i = 0; i < [UIFont.familyNames count]; i++) {
- NSString *family = UIFont.familyNames[i];
- NSArray *array = [UIFont fontNamesForFamilyName:family];
- for (int j = 0; j < array.count; j++) {
- NSString* data = array[j];
- NSLog(@"%@", data);
- }
- }
- // Then get the name from data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement