CUIC目录:找不到名称的再现:someimage@2x~ipad.png比例因子:2设备成语:1设备子类型:568 [英] CUICatalog: Can't find rendition for name: someimage@2x~ipad.png scale factor: 2 device idiom: 1 device subtype: 568

查看:62
本文介绍了CUIC目录:找不到名称的再现:someimage@2x~ipad.png比例因子:2设备成语:1设备子类型:568的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了可以在xcode 5上完美运行的应用程序.但是当我使用iphone 6模拟器在xcode 6上运行它时,它给了我一个错误:

I created app that perfectly worked on xcode 5. But when i run it on xcode 6 with iphone 6 simulator, it's giving me an error:

CUICatalog:找不到名称的再现:someImage@2x~ipad.png比例因子:2个设备习惯用语:1个设备子类型:568

CUICatalog: Can't find rendition for name: someImage@2x~ipad.png scale factor: 2 device idiom: 1 device subtype: 568

推荐答案

我知道这可能不是您想要的答案,但是我遇到了完全相同的问题,只需重命名图像即可解决问题.

I know this probably isn't the answer you want, but I had the exact same problem, and simply renaming the image fixed the problem.

换句话说,我将无法加载的原始文件复制到了同一目录中的另一个文件中,并使用了不同的名称.

In other words, I copied the original file that wouldn't load to another file in the same directory, with a different name.

然后我将此新文件添加到Xcode项目中,并删除了第一个文件.

I then added this new file to the Xcode project and removed the first one.

我更改了代码以反映新的图像名称:

I changed the code to reflect the new image name:

   // Asset Catalog problem loading this:
   //  [imgBackground setImage:[UIImage imageNamed:@"Home_BG@5g.png"]];
   [imgBackground setImage:[UIImage imageNamed:@"Home_BG-568h"]];

我略微更改了以前开发人员的命名约定,以使用 Home_BG-568h@2x.png .

I slightly changed the previous developer's naming convention, to go with Home_BG-568h@2x.png.

希望这对某人有帮助.

这篇关于CUIC目录:找不到名称的再现:someimage@2x~ipad.png比例因子:2设备成语:1设备子类型:568的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆