gpt4 book ai didi

ios - 无法将自定义字体添加到 Xcode

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:00:57 24 4
gpt4 key购买 nike

好吧,我已经阅读了大量的资料,遵循了几个教程,但我仍然无法将自定义字体添加到我的 iOS 应用中。

我已经 (1) 添加字体并将其复制到 xcode。 enter image description here

我已经 (2) 将它们添加到正确的目标中。 enter image description here

我 (3) 确保它们作为资源包含在 bundle 中。 enter image description here

我已经 (4) 将它们包含在我的 info.plist 中。 enter image description here

我 (5) 试图通过插入此代码在我的字体列表中找到它们。 enter image description here

然而字体仍然没有出现。我发现字体名和文件名不一样,但是我对比了前后的字体族名列表和字体名列表,完全一样,证明没有添加字体。我已经按照 SO 和这些教程进行了 T,但没有任何效果。

最佳答案

您无意中将它们添加到了错误的(测试)Info.plist 中。

关于ios - 无法将自定义字体添加到 Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30554758/

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