我跟着这个 tutorial并且我的故事板上显示了自定义字体但是当我执行我的应用程序(在模拟器或设备上)时,字体没有被反映出来.有谁可以帮忙. 这就是我做的: 1- downloaded a .ttf file and co
这就是我做的:
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())时出现字体名称