I understand that a Retina display has twice as many pixels as non-retina displays, but what is the difference between using the @ 2x version and taking and displaying a 512 x 512 image and keeping it in frame size?
To clarify:
if I have a 72 x 72 button. The correct way to show that there is an iPhone
image.png = 72x72
image@2x.png = 144 x 144 <--- Fixed: TY
But why not just use 1 image:
image.png = 512x512
and follow these steps:
UIImageView *myImage = [[UIImageView alloc] init ]; [myImage setImage:[UIImage imageNamed:@"image.png"]]; [myImage setFrame:CGRectMake(50, 50, 72, 72)];
I am sure there is a good reason, I just donβt know what it is, another, maybe a smaller file size?
Thanks for the education!
Nathan
source share