iPhone适配.md
589 Bytes
适配的前提
原来设计图的约束数值都是按照iPhone6的设计给的,在项目中都是按照5(4-inch)的数值实际使用的
方法一
方法名:
#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))
适用环境:
方法二
方法名:
#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))
适用环境:
在