I have this iPhone app targeted to iOS 7.
I have created an entry on .xcassets
called mainImage
that is device specific for iPhones. So xcode presents me with 4 slots I have to fill with images. that has these images: 1x
, 2x
, Retina 4 2x
and 3x
.
I have filled each slot with the following images in order:
1x
= 320 x 480 pixels image2x
= 750 x 1334 pixels imageRetina 4 2x
= 640 x 960 pixels image3x
= 1242 x 2208 pixels image
Then I have a viewController on storyboard that is adjusted with the iPhone 6 size and the imageView there is adjusted to load just "mainImage".
The image shown there is the iPhone 4 2x
stretched, not the correct one. It should be showing the 750x1334 image.
If the imageView is adjusted with "mainImage", wasn't it supposed to load the correct image for the viewController size?
I run that on iPhone 6 and indeed the image shown is the iPhone 4 image stretched.
Anyway to fix that?