简体   繁体   中英

Default.png not showing on iPad device, but showing on iPad simulator

It's driving me crazy. I've been searching for solution on the web for hours but nothing helps. I have an universal app, cocos2d game. iPhone launch images are showing perfectly but not iPad ones. The iPad files are:

 Default-Landscape~ipad.png
 Default-Landscape@2x~ipad.png
 Default-Portrait~ipad.png
 Default-Portrait@2x~ipad.png

If i launch the app in the simulator it works just fine, the correct image is displayed. But when i do that on a real iPad weird things start to happen. It takes iPhone image instead of iPad one. I presume so cause the image is stretched and turned upside down. If i completely remove iPhone images from the project it just shows nothing, black screen only. A real device ignores the files listed above. Anybody, please, suggest a solution

The problem was that despite .png extension files were jpg really. After re-saving these files as png in Photoshop everything eventually started to work

我认为您的图像名称不区分大小写。请尝试使用适当的名称添加图像或检查图像。另一种方法是右键单击finder项目位置中的xcodeproject文件。并删除xcuserdata内容。然后再次运行该项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM