gpt4 book ai didi

ios - 自定义字体可以在模拟器上使用,但不能在某些 Storyboard中渲染

转载 作者:行者123 更新时间:2023-11-29 05:48:50 24 4
gpt4 key购买 nike

Disclaimer : Custom fonts show up in storyboard/ interface builder and not in simulator is a popular question that is asked before... and not to be confused by this different question.

我的情况是相反的,字体在模拟器中工作,但没有在所有 Storyboard中显示......我想知道为什么它在某些 Storyboard中有效,而在其他 Storyboard中不起作用......

我在网上找不到答案,现在将附上答案,我花了一些时间才弄清楚......

最佳答案

解决方案简单,转到您的目标副本捆绑资源,并确保问题的 Storyboard附近有路径并且旁边有图标(这意味着它已添加对),如果没有(我以 LaunchScreen.storyboard 为例),则只需转到文件并使其相对于项目而不是相对于组,就是这样...

enter image description here显示界面生成器直接渲染我的字体的示例..并且可以从自定义字体菜单中选择字体。 enter image description here

据我所知,文件的顺序并不重要,但请确保图标和路径显示(这表明添加成功)

关于ios - 自定义字体可以在模拟器上使用,但不能在某些 Storyboard中渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55873120/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com