suyuexin

Updated iPhone适配 (markdown)

@@ -5,18 +5,16 @@ @@ -5,18 +5,16 @@
5 ## 方法一 5 ## 方法一
6 **方法名:** 6 **方法名:**
7 7
8 -`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))` 8 + `#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
9 9
10 **适用环境:** 10 **适用环境:**
11 - 11 + 在没有新的设计图的情况下,项目内的参数都需要这个宏来做处理
12 -  
13 12
14 13
15 ## 方法二 14 ## 方法二
16 **方法名:** 15 **方法名:**
17 16
18 -`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))` 17 + `#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
19 18
20 **适用环境:** 19 **适用环境:**
21 - 20 + 在有iPhone6P新设计图的情况下,需要使用这个方法,第一个参数是:(原来按照iPhone6给的约束),第二个参数是:(新的按照iPhone6P给的约束)
22 -