user409333
user409333

Reputation:

use @2X for image

If i want to set an image for background of my app and use it on iphone3 i should use image with 320 * 480 resolution (image1.png)and for iphone 4 i should use image with 640 * 960 resolution(image2.png) how can i mange them?(means when should i use first image and when second image)

i read somewhere that i should use @2X but i can't understand how

Upvotes: 2

Views: 3251

Answers (2)

Dave Anderson
Dave Anderson

Reputation: 12274

Load two resources into your project image.png (320x480) and [email protected] (640x960). Whenever you need to specify an image just use image.png. During execution the application will automatically use the @2x image if the screen supports higher resolution. See Loading Images into your Application.

Upvotes: 3

esqew
esqew

Reputation: 44699

Just use the name of the original image and then append @2x to the end of the 640*960 picture.

If your original is Image.jpg then your high-res picture should be [email protected]

Upvotes: 6

Related Questions