查看字体的种类
2019-07-09 本文已影响0人
guoguojianshu
NSArray *familyArray = [UIFont familyNames];
NSString *familyName ;
NSMutableArray *fontNames = [[NSMutableArray alloc] init];
for(familyName in familyArray) {
NSArray *names = [UIFont fontNamesForFamilyName:familyName];
[fontNames addObjectsFromArray:names];
}
NSLog(@"%@", fontNames);