1 plist文件中添加
Fonts provided by application
名字要对应
2 获取特殊字体使用时的实际名字
NSString *path = [[NSBundle mainBundle] pathForResource:@“IMPACT” ofType:@“TTF”];
NSURL *fontUrl = [NSURL fileURLWithPath:path];
CGDataProviderRef fontDataProvider = CGDataProviderCreateWithURL((__bridge CFURLRef)fontUrl);
CGFontRef fontRef = CGFontCreateWithDataProvider(fontDataProvider);
CGDataProviderRelease(fontDataProvider);
NSString *fontName = CFBridgingRelease(CGFontCopyPostScriptName(fontRef));
UILabel *ttttt = [[UILabel alloc] init];
ttttt.font = [UIFont fontWithName:fontName size:18];