Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default.png shows in simulator but not on real device iphone?

i have added a splash screen to my application by adding Default.png. the splash screen works fine in the simulator but not showing on real device

like image 746
Rahul Vyas Avatar asked Jul 01 '09 08:07

Rahul Vyas


4 Answers

Check the case of the file name.

Default.png, default.png, Default.PNG and DEFAULT.png are all different files on the device, but not in the simulator.

like image 98
Corey Floyd Avatar answered Oct 01 '22 06:10

Corey Floyd


The file name must be Default.png (with a capital D). Also, do a clean/rebuild of the entire project to ensure the most recent version of the file is being included in the project.

like image 44
John Muchow Avatar answered Oct 01 '22 08:10

John Muchow


Make a "Default.png" file (with a capital "D"). Then clean all targets and build again.

like image 35
zed Avatar answered Oct 01 '22 07:10

zed


Sometimes this issue hapens, when .png file was renamed from .jpg file. So, for example, you had image.jpg, you've renamed in to image.png, and using this image.png. It'll be correctly displayed in simulator, and won't work on device

like image 36
tt.Kilew Avatar answered Oct 01 '22 06:10

tt.Kilew