无法添加任何图像 [英] Cannot add any images

查看:31
本文介绍了无法添加任何图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我为我添加图像时都会收到以下错误.出于某种原因,即使我重命名它仍然不起作用,这个问题之前在另一个项目中发生过,所以我删除了它并重新开始.我已经检查了确实消除了错误的重复图像,但是一旦我构建了项目,图片就是空白的,我收到一条消息说

Every time i add an image for i get the error below. For some reason even if i rename it it still doesn't work, this problem was happening before on another project so i deleted it and started again. i have already checked for duplicate images that did get rid of the error however once i built the project the the picture was blank and i get a message saying

2013-11-07 16:45:28.613 Chiswick W4[1812:60b] 无法加载标识为Studentathome.Chiswick-W4"的包中笔尖引用的1frivoli.png"图像

2013-11-07 16:45:28.613 Chiswick W4[1812:60b] Could not load the "1frivoli.png" image referenced from a nib in the bundle with identifier "Studentathome.Chiswick-W4"

急需帮助!!

另外我想补充一点,我可以拍摄该图像的屏幕截图并输入它,但是我必须这样做,这是最坏的情况,我只想知道为什么我的图像不起作用.

Also i would like to add i can take a screen shot of that image and input it however i will have to do this is a worst case scenario i just want to know why my images don't work.

谢谢

推荐答案

显然,如果您将 Windows 上的图像更改为 .png,它实际上并没有将文件转换为 .png,原因我怀疑这可能是问题是因为在为 android 开发时,这种类型的文件类型没有问题.我需要做的就是使用在线转换器将所有图像更改为 .png.

Apparently if you change an image on windows to .png it doesn't actually convert the file to .png, the reason i was doubtful that this could be the issue is because when developing for android there was no issue with this type of file type. All i needed to do was use an online converter to change all the images to .png.

这篇关于无法添加任何图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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