且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将新字体添加到Xcode 3.2?

更新时间:2023-11-30 19:52:58

此功能未内置于UILabel iOS中的/ UIFont< 3.2。但是您可以使用第三方解决方案: FontLabel

This functionality isn't built into UILabel/UIFont in iOS < 3.2. But there is a third-party solution you can use: FontLabel

在的iOS 3.2+,有在 UIAppFonts plist键

In iOS 3.2+, there's the UIAppFonts plist key!

使用前请执行此操作:添加字体文件(例如 myfont.ttf )到项目中,然后编辑的Info.plist像这样:

Just do this before using it: add your font file (such as myfont.ttf) to your project, then edit the Info.plist like so:

info.plist http://cl.ly/97da7a4f67b1b81a540f/content