IPhone6 and IPhone6 Plus have been on the market for some time. Although the mainland did not start a dull pain, but also for the IPhone6 and IPhone6 plus design of the transition and the big screen times are delighted.
Today the main mark below is the xib way to fit the IPhone6 and IPhone6 plus screens.
1.iphone5 resolution 320X568. Pixel 640x1136,@2x
2.iphone6 resolution 375x667, Pixel 750x1334. @2x
3.iphone6 Plus resolution 414x736, Pixel 1242x2208,@3x, (note, after rendering at this resolution.) Image ratio reduced pixel resolution to 1080p (1080x1920)
One, code adaptation (more cumbersome not easy upgrade)
The way the code is adapted is not conducive to future extensions. Dynamically change the frame of an empty control by inferring the size of the current screen.
Second, xib adaptation
Xib do not tick the use AutoLayout, then each control of the frame through the relative layout to achieve, well the end ...
。 Everything is in silence.
。。
Good night.
。。
iOS on IPhone6 and IPhone6 plus screen adaptation issues