When the app loads, if we want an image to be displayed we use one named Default.png. And I used it for icon too. But are working fine in simulator.
But when I try it in device at both places its blank. Can anyone sort me out of this?
When the app loads, if we want an image to be displayed we use one named Default.png. And I used it for icon too. But are working fine in simulator.
But when I try it in device at both places its blank. Can anyone sort me out of this?
Check the case of the file. It needs to have a capital D. On the simulator Default.png and default.png are the same but not on the device.
Try removing the application from the device and reinstalling. I know, silly, but sometime's fixes xcode/device issues.
Please check if the size of your Default.png is 320*480 and if you have converted it from any other format, make sure you have not just renamed but properly re-saved the image in png format.
Hope this helps.
Thanks,
Madhup
Try cleaning your project using this button
And then reinstall the app...
According to Apple HIG your Icon.png should be of 57 x 57 pixels, with 90 degree corners. and Default.png should be of 320 x 480 pixels.For more info follow MobileHIG
For splash screen
For icon
2.Add a icon.png to your Info.plist
i.e. Key = Icon file , Value = icon.png
3.If all this doesn't work then delete the build folder and rebuild your application (but before build press Clean All button in xcode).
4.If this also doesn't work the change image name to default.png ( not Default.png)
Yes, I think it's because of the "capital D" issue. I've seen the same problem with UIImageView.