IPhone6 and IPhone6 Plus have been on the market for some time, although the mainland has not started a dull pain, but still for the IPhone6 and IPhone6 plus the design of the transition and the large-screen era of joy.
Today, mainly to mark the following Xib way to fit the IPhone6 and iPhone6 plus screen.
1.iphone5 resolution 320x568, Pixel 640x1136,@2x
2.iphone6 resolution 375x667, Pixel 750x1334,@2x
3.iphone6 Plus resolution 414x736, Pixel 1242x2208,@3x, (note that after rendering at this resolution, the image is reduced pixel resolution to 1080p (1080x1920)
One, code adaptation (more cumbersome not easy to upgrade)
The code adaptation method is not conducive to future expansion, by judging the current screen size to dynamically change the empty control frame.
Second, xib adaptation
Xib do not tick the use AutoLayout, then the frame of each control is implemented by the relative layout, so the end .... Everything is not in the words ...
Good night ...
iOS on IPhone6 and IPhone6 plus screen adaptation issues