Created
April 4, 2013 14:54
-
-
Save demigod19892012/5311063 to your computer and use it in GitHub Desktop.
[iOS] Get All Available Fonts in iOS
This file contains hidden or 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
// Enumerate the installed font family names | |
[[UIFont familyNames] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) | |
{ | |
debug(@"\nFamily: %@", obj); | |
// Enumerate the font names in the each family | |
[[UIFont fontNamesForFamilyName:obj] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) | |
{ | |
debug(@"\tFont: %@\n", obj); | |
}]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment