如何在Xcode 6中设计时自定义字体? [英] How to do Custom Fonts at design time in Xcode 6?

查看:105
本文介绍了如何在Xcode 6中设计时自定义字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

It was explained in the WWDC 2014 videos that you can have Custom Fonts at designing time directly in Storyboard, but so far I only see the list of iOS fonts. Any help?

推荐答案

你所要做的就是将字体文件拖放到你的Xcode项目中,然后你就可以找到自定义字体列表中的字体。您甚至不必将它们包含在您的应用程序Plist中。这使得事情变得更简单。

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.

如果您已经将字体添加到Xcode 5.1项目中,则在升级到Xcode6时它们不会显示在自定义字体列表中。您可以删除对字体的引用,然后再将它们放入项目并检查复制到目标。这将在xCode6上的界面构建器自定义字体下拉列表中显示自定义字体。

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.

这篇关于如何在Xcode 6中设计时自定义字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆