After reading Apple's own HIG (specifically the 'Creating images for retina..' section) and looking at similar answers and suggested blogs - I can't seem to get a good solid fix on how properly design images for retina.
To best explain, let me set up a scenario:
I have a UIButton that is 44 x 44 points that I laid out in IB.
I go to photoshop, create an image that is 44 x 44 pixels. I save that as image@2x.png
I save another, without the @2x.png appended on the file name.
In the code, I do something like ...
[UIImage imageNamed:@"image"]
From what I have read, it seems that DPI doesn't matter. I do also understand that retina images are, of course, double in scale to the original image. So for the scenario above, was the image@2x.png
supposed to be 88 x 88 pixels instead of 44 x 44 pixels? In the [UIImage imageNamed:@"image"]
, do I need to specify the @2x
in the image's name, or does xcode take care of that?
Going with the scenario I described above, can someone either correct me or confirm that this is the correct pixel dimensions the image?