Possible Duplicate:
How to accommodate for the iPhone 4 screen resolution?
What is the best way to include Retina Display Images on an iPhone app. Are there issues with the iPhone 3G or older iPhone with higher res images?
Possible Duplicate:
How to accommodate for the iPhone 4 screen resolution?
What is the best way to include Retina Display Images on an iPhone app. Are there issues with the iPhone 3G or older iPhone with higher res images?
Include a hi-res version of your image named as "image@2x.png" (where "image.png" is the normal resolution). When you access your image using [UIImage imageNamed:@"image.png"]
, the correct one will be chosen automatically. Devices without retina display won't load the hi-res version, so there's no memory overhead.