How to set corresponding MYimage.png for MyimageView in Xcode 6 with ios 8.x compatiblity.
MyimageView setImage:[UIImage imageNamed:@"MYimage.png"];
In Resources, I am having the following images with resolutions:
MYimage.png--320*480
MYimage@2x.png--640*960
MYimage-568h@2x.png--640*1136
MYimage-375h@2x.png--750*1334
MYimage-736h@3x.png--1242*2208
For iPhone 4s,it shows: MYimage@2x.png [Right]
For iPhone 5s,it shows: MYimage@2x.png [wrong]
For iPhone 6,it shows: MYimage@2x.png [wrong]
For iPhone 6+,it shows: MYimage@2x.png [wrong]
But after renaming the images as mentioned below:
MYimage.png--320*480
MYimage@2x.png--640*960
MYimage-568h@2x.png--640*1136
MYimage-375h@2x.png--750*1334
MYimage@3x.png--1242*2208
For iPhone 4s,it shows: MYimage@2x.png [Right]
For iPhone 5s,it shows: MYimage@2x.png [wrong]
For iPhone 6,it shows: MYimage@2x.png [wrong]
For iPhone 6+,it shows: MYimage@3x.png [Right]
So., What's the stated format to implement?
Note: Also googled following Links and so on..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…