Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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.

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

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

Make sure the name of the file begins with a capital "D", then clean and rebuild.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top