Showing
1 changed file
with
4 additions
and
1 deletions
1 | ## 适配的方案 | 1 | ## 适配的方案 |
2 | **方法1** | 2 | **方法1** |
3 | + | ||
3 | #define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6)) | 4 | #define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6)) |
5 | + | ||
4 | **方法2** | 6 | **方法2** |
5 | -#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6)) | 7 | + |
8 | +#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6)) |
-
Please register or login to post a comment