gpt4 book ai didi

ios - 我的项目中有两个 xcassets。为什么在设备/模拟器上运行时无法加载其中一张 xcassets 的图片?

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

我的项目中有两个 xcassets:

enter image description here

并且两者都被复制到包资源中。

enter image description here

而且我可以在xib上看到图片:

enter image description here

当我运行项目时,设备/模拟器上没有显示 bjzjicons.xcassets 中的图片。

但是如果我将 bjzjicons.xcassets 中的图片移动到 Images.xcassets 中,它们可以正确显示。

谁能告诉我为什么?

最佳答案

我通过将 xcassets 移动到与 xxx.xcodeproj/xcworkspace 相同的文件夹中解决了这个问题。

关于ios - 我的项目中有两个 xcassets。为什么在设备/模拟器上运行时无法加载其中一张 xcassets 的图片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38417805/

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