Reputation: 535
My client said to me that i have to use different images for iPhone 4 (retina display) and different for other older versions
How to do this can anyone help ?
Upvotes: 1
Views: 223
Reputation: 4738
On iOS, you can have two pictures for the same place.
myPicture.png // normal size
[email protected] // double size
The device will automatically switch to the correct picture based on the screen resolution.
If you should use totally different picture, you can detect device by this way Detect Retina Display
Upvotes: 5
Reputation: 124997
See Specifying High-Resolution Images in iOS for a complete description of how to do this. In a nutshell, you provide the usual images, and then high resolution versions with the same name plus "@2x".
Upvotes: 3
Reputation: 10393
Basically you will have 2 sets of images. File1.png and [email protected]. Rest is taken care by the os depending on the device.
Upvotes: 4