Images for Retina Display

If I want my application to be compatible with the Retina display, do I have to recreate all my images by doubling their sizes? even an icon?

0
iphone xcode retina-display
Apr 20 '12 at 12:20
source share
4 answers

You do not have to, it will look very uneven if you do not.

As for the icon, I believe that you are required to provide several sizes when sending to the AppStore.

+1
Apr 20 2018-12-12T00:
source share

if you don't use high resolution images, your images will look jagged /blurr.So it's better to use high resolution images as well. Some key points:

  • Graphics can be displayed depending on the device model by duplicating image files and adding the suffix '@ 2x. So, when a regular image file is called "button.png", the hi-res version should be "button@2x.png.
  • You do not need additional code for this. In Interface Builder or your code, assign the normal version (no suffix) to the object. The same goes for the application icon. The resolution of the 2x icon should be 114 by 114 pixels. You will need to add a separate Icon property in the Info.plist file for this icon.
  • If for any reason you want to perform code verification, you can do this by checking the scale factor of the display. Older models will return a scale factor of 1.0, while the iPhone 4 will return 2.0. You can check this with:

float factor = [UIScreen mainScreen] .scale;

Depending on the type of application you are planning, further optimizations may be made in order to make the best use of the new retina display.

Very good info here

hope this helps you :)

+2
Apr 20 2018-12-12T00:
source share

You might want to take a look at iRetiner .

You can also check out this previous stackoverflow: how to install an image for an ipad application that supports retina display

+1
Apr 20 '12 at 12:23
source share

A summary of the icons and what is required can be found in the Human Interface Guide . I highly recommend providing high resolution images for retina display, even if it is not required. Your default now should be to design a cover with a higher resolution and then zoom out for older devices. I doubt that Apple will decide to emphasize the application as new and noteworthy if it is displayed on the latest devices.

+1
Apr 20 2018-12-12T00:
source share



All Articles