14

在 WWDC 2014 视频中解释说,您可以在设计时直接在 Storyboard 中使用自定义字体,但到目前为止我只看到 iOS 字体列表。有什么帮助吗?

4

2 回答 2

39

All you have to do is to drag and drop the font files to your Xcode project, then you can find the font in the Custom font list. You don't even have to have them included in your Application Plist. That makes things simpler.

If you already had fonts added to Xcode 5.1 project, they will not show up in the custom fonts list upon upgrading to Xcode6. You can just remove references to the fonts then drop them in the project again and check the "copy to target". This will show custom fonts in the interface builder custom fonts dropdown on xCode6.

于 2014-06-08T22:01:30.250 回答
0

首先在情节提要中使用您的自定义字体,然后您可以在代码中使用它。

于 2015-04-09T07:01:53.133 回答