I have a few questions about screen resolution, that I’m not clear on. These questions assume they my app will be running on iOS 4.0 and up, and on either iPhone 3GS or iPhone 4.
-
Should the size of the splash image (default.png) be (960×640) or (480×320)?
-
Should the size of the app icon (Icon.png) be (57×57) or (114×114)?
-
What about other graphics that I may use in my app, such a graphic that represents a button? Should I always create these images for the higher resolution, and have the app scale them down? In other words, if I want a button image to be displayed on the 3GS that is 200×40 – should I create the image at 400×80, so that iPhone 4 can take advantage of it?
Thanks!
A good guide to this can be found here: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/
In general you just create 2 sets of images. Your original and then a new one twice as big with @2x in the name. So for image.png at size 32×32 you would have one that is twice the resolution called image@2x.png at size 64×64. In your app just always use the image.png in Interface Builder and when loading in code.
There is no need to detect the device. These images will automatically be picked up by the OS and subbed in as necessary.
Related Questions: