iOS- 查看系统的字体

 NSArray *familys = [UIFont familyNames];
    for (int i = 0; i<familys.count; i++) {
        NSString *family = [familys objectAtIndex:i];
        NSLog(@"family = %@",family);
        
        NSArray *fonts = [UIFont fontNamesForFamilyName:family];
        for (int j = 0; j<fonts.count; j++) {
            NSString *font = [fonts objectAtIndex:j];
            NSLog(@"font = %@",font);
        }
    }

屏幕快照 2017-06-03 下午3.34.21.png

推荐阅读更多精彩内容