开发者

Image doesn't load to iphone when compiling a project from xcode 4 to the device

开发者 https://www.devze.com 2023-03-13 15:55 出处:网络
I am trying to build a project onto my iphone from Xcode 4, which has an image, and from some reason I am getting an error that the file is missing or that it is not a .png, even though it is. the pro

I am trying to build a project onto my iphone from Xcode 4, which has an image, and from some reason I am getting an error that the file is missing or that it is not a .png, even though it is. the project compiles and runs on my device fine, just without the image. when i run it开发者_开发知识库 on the computer, the image loads properly.

any ideas? Thanks!


check the filename of the image. The device uses a case sensitive file system, the simulator usually runs on a case insensitive file system.

So image.PNG and Image.png reference the same file on the simulator, but different files on the actual device.

0

精彩评论

暂无评论...
验证码 换一张
取 消