My app will download a image and display it into a UIImageView.
The image is quite large, say 600 * 600 and the UIImageView’s size is 100 * 100.
So when the image is displayed, I set the UIImageView to scale it to fit.
My question is
For iPhone 3Gs, I understand the image is scaled to 100 * 100 directly and displayed in UIImageView.
But what about iPhone 4? When I do imageView.image = image, will iOS automatically scale the image to 200 * 200 first and then display it in 100 * 100 imageView?
I mean should I do anything extra to make sure that the Retina display is adapted?
Thanks
In this case, no, you needn’t do anything particular. If your UIImageView is well configured (scale to fit, as it seems you’ve done), an iPhone4 will display your image scaled at 200×200 pixels in a 100×100 points UIImageView. No need either to download a different “whatever@2x.png” image.