Skip to content

Instantly share code, notes, and snippets.

@jungchris
Created May 2, 2015 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jungchris/a24815324319d757de01 to your computer and use it in GitHub Desktop.
Save jungchris/a24815324319d757de01 to your computer and use it in GitHub Desktop.
Function to iterate available iOS Fonts
// Source: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
- (void)viewDidLoad {
[super viewDidLoad];
// iterate through all available fonts
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment