gpt4 book ai didi

ios - 加载图像不是从 .xcassets 文件夹?

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

我有一个本地化的 iOS 应用程序。我本地化了我的图像并将它们设置为来自代码的 View 。我从 .xcassets 中删除了本地化图像,现在这些图像位于某个文件夹“localized_images”中。但是现在 Storyboard 中的一些观点是空的。我如何在 Storyboard中为 imageview 设置图像而不是来自 .xcasset 文件夹,而是来 self 的文件夹“localized_images”

最佳答案

只需在属性检查器中输入图像名称及其扩展名(exampleImage.png)

此外,如果您想要 1x 2x 3x 图像,则必须创建 Assets 目录

enter image description here

关于ios - 加载图像不是从 .xcassets 文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43889103/

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