views:

2047

answers:

4

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

+11  A: 

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.

Corey Floyd
what is the correct case of the file name for device and simulator?
Rahul Vyas
Device.png with a capital 'D' but no other capitals.
David Maymudes
A: 

Select your Default.png in the groups and files window and make sure in the file listing above the editor window that the checkbox on the far right is checked. Without this the file will not be copied to the application bundle after compilation is finished.

Lounges
+4  A: 

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.

John
A: 

Has anyone had this happen with other .png graphics being used throughout a program (eg icons)? I use a multitude of pngs in my current main project -- they all show up fine in the simulator but there are 2 that will not display on the Device Build??? I have tried cleaning, recleaning, restarting etc and I can't get past this nagging issue of png's being invisible...

Any help greatly appreciated!

DoctorG
It happens to me now and then. Open it in an image editor (for example Acorn) and just save it again. That works for me.
Felixyz
I have sometimes this issue when .png files 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
tt.Kilew