我可以将自定义字体包含在XIB中吗? [英] Can I include the custom fonts to XIB?

查看:103
本文介绍了我可以将自定义字体包含在XIB中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程序中,我需要自定义字体。

In my iPhone App, I need custom fonts.

我知道如何通过info.plist和编程方式包含它,但是我可以在XIB中使用这些字体吗?文件?

I know how to include it through info.plist and programmatically, but can I have the fonts in the XIB file?

我在哪里可以设置自定义字体,如图所示:

Where can I set the custom fonts as shown in the image:

推荐答案

您无法从那里添加自定义字体,而是必须创建IBOutlet并以编程方式添加字体

You cannot add the custom fonts from there, instead of that, you have to create an IBOutlet and add the font programmatically

这篇关于我可以将自定义字体包含在XIB中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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