Take the 2-minute tour ×

So with the retina displays on iOS I usually have images with twice the size named @2x per apple's guidelines on how to do retina displays. But this naming convention only works with images in the app's bundle which I can't write to.

What is your strategy for pulling down high resolution images from a server?

Should I always just pull down the high res images (say 120x120 for a normal 60x60 image) and slap it into the uiimageview?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

to set retina Image you should

UIImage *image;  // from download

Check first if you have a retina display


if "retine == YES" , fetch the retina image you want

share|improve this answer
So.. if retina I fetch retina image, use your uiimage scale (I assume scale 2 means this image is 2x the size it should be). If not retina fetch the normal image (presumably from a different url), and use a normal uiimage? –  Msencenb May 24 '12 at 1:02
yes, use "scale" or you can just fetch retina image , but it use more memory –  adali May 24 '12 at 1:05
add comment

Your Answer


