我跟着这个tutorial自定义字体显示在我的故事板上,但是当我执行我的应用程序(在模拟器或设备上)时,字体没有反映出来。谁能帮忙。
这就是我所做的:
1- downloaded a .ttf file and copied it to my project
2- added "Fonts Provided By Application" in info.plist and added a row having the name of my custom font.
3- opened storyboard and selected the UILabel i want to have a custom font for, and selected the font as custom then selected my font. the font was shown on the storyboard correctly.
我错过了什么吗?
谢谢@Andrey Chernuka 和@jcaron。我通过将目标成员资格设置为我的项目,然后退出项目(由于某种原因清理不起作用)并重新打开项目来解决问题,一切都已设置。我打印时出现字体名称print (UIFont.familyNames())
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)