
这就是我做的:
1- downloaded a .ttf file and copIEd it to my project2- 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())时出现字体名称 总结以上是内存溢出为你收集整理的IOS中的自定义字体未在设备上反映全部内容,希望文章能够帮你解决IOS中的自定义字体未在设备上反映所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)