当我使用Interface Builder在普通的UILabel上设置自定义字体时,一切正常 . 它正确显示在IB,模拟器和设备上 .

When I make a UILabel attributed, it displays the custom font correctly in IB but it doesn't work in the simulator or on the device. It just returns to the default system font.

I've heard other people have this problem. Has anyone found a solution?

笔记:

  • 我的工作只是使用普通标签,并以编程方式更新 .

  • 我的字体已正确加载,因为如果以编程方式创建标签并且它适用于普通UILabel,则它可以正常工作 .

  • 在xCode 6和xCode 6.1 beta中找到了这个,目标是iOS 8