我无法让我的 .ttf 文件在我的 iPhone 应用程序中工作。我将此文件添加到我的项目中:
gothamnarrowbook.ttf
我将此添加到我的 plist 中:
<key>UIAppFonts</key>
<array>
<string>gothamnarrowbook.ttf</string>
</array>
在我的 ViewController 中,我添加了这个:
UIFont *gnb = [UIFont fontWithName:@"gothamnarrowbook" size:22];
但是 gnb 是零。我究竟做错了什么?