Apple's products are more and more, the size of the screen is also a variety of, the original need not how to consider the adaptation problem is now more and more prominent. The aspect ratio is different also to forget, pixel accurate to single bit really can't endure, don't say, first.
Today I want to put a full screen picture in the program, but there is a problem when setting up the source of the picture. 6plus Although not the standard 3 times times, but with @[email protected] can also solve, 4s,5,5s,6 when reading pictures are used [email Protected], wherein, 5,5s,6 aspect ratio is roughly 0.562 or so, this one is also done, but the 4S 320*480 is very difficult to deal with, the picture shows flat flat. So I try to set a unique image for 4S.
Get hardware information
Uidevice *device=[uidevice Currentdevice];
Output phone model NSLog (@ "%@", device.systemname);
About iOS picture adaptation