Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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