图像在模拟器但不是设备加载? [英] Image loads in simulator but not device?
本文介绍了图像在模拟器但不是设备加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Interface Builder中,我在一个nib中有一个UIImageView,并从视图属性窗格中选择了一个图像。在调试模式下,映像在仿真器中加载的很好,但在我的设备上不加载。我没有得到任何错误。只是没有图像。
In Interface Builder, I have a UIImageView in a nib and have selected an image from the View Attributes pane. The image loads fine in the simulator but not on my device in debug mode. I don't get any errors. Just no image.
我可以看到我的目标的副本资源文件夹中的特定图像。
I can see the particular image in my Target's Copy Bundle Resources folder. Any ideas why it isn't showing on the device?
推荐答案
可能的原因:Iphone文件系统区分大小写,MacOS是不。尝试检查您的图片文件名。
A possible cause: Iphone file system is case sensitive and MacOS is not. Try to check your image file name.
这篇关于图像在模拟器但不是设备加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文