Kumar sonu
Kumar sonu

Reputation: 535

Separate images for separate versions

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

Answers (3)

j_freyre
j_freyre

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

Caleb
Caleb

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

Praveen S
Praveen S

Reputation: 10393

  1. How to design for retina display?

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

Related Questions