图像显示在模拟器中但不在iPhone设备上 [英] Images showing in simulator but not on the iPhone device

查看:153
本文介绍了图像显示在模拟器中但不在iPhone设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,当我从设备运行应用程序时,图片显示出来,一切都很好。然而,当我移动到设备时,我运行的38张图片中约有10张没有出现。我从sqlite数据库中提取图像的名称,我已经检查过,名称是正确的,大小写和一切。我检查了捆绑包,图像在那里正确。

So when I run the application from the device the pictures show up and everything works great. However, when I move to the device I run in about 10 out of 38 pictures that don't show up. I am pulling the names for the images from an sqlite database and I already checked and the names are correct, case and everything. I checked the bundle and the images are correctly in there.

记忆是否在此生效?我不确定还有什么可能导致这种情况发生?

Does memory play into effect in this? I am not really sure what else could cause this to happen??

谢谢!

解决方案:
文件以某种方式未正确保存,无法通过说photoshop或甚至油漆打开。因此,由于文件无法打开,他们没有出现...感谢大家的帮助!

Solution: The files somehow were not saved properly and were unable to be opened by say photoshop or paint even. So with the files not being able to be open they weren't showing up... Thanks for the help everyone!

推荐答案

模拟器接受更广泛的图像格式。有时您有一个设备无法显示的特定文件类型。仔细检查10个文件,寻找与其他文件有所不同。

The simulator accepts a wider range of image formats. Sometimes you had a specific file type that the device cannot display. Double check the 10 files looking for some difference from the others ones.

这篇关于图像显示在模拟器中但不在iPhone设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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