Search code examples
iosios5retina-display

iOS SDK retine images vs using bigger images for smaller placeholders


Is it the same if I use a big image i.e. a 40x40 image in a 20x20 place holder or a @2x image for retina?

I mean, I have two alternatives: - use a 20x20 image.png and 40x40 [email protected] - use a 40x40 image.png

Is it the same? Thanks.


Solution

  • Using only retina images and leaving the down-scaling on non-retina devices up to the system is possible but not recommendable in all cases.

    It really depends on the contents of your graphics. If, for example you are using vector based graphics as your source (sharp lines etc.), then offering only the retina images will result into washed, blurry images on non-retina displays.

    Again, it is possible and entirely fine if your content still looks good enough.