suyuexin

Updated iPhone适配 (markdown)

1 -## 适配须知 1 +**iPhone尺寸:**
  2 +
  3 +3GS 320x480 3.5-inch 640x960
  4 +4 320x480 3.5-inch 640x960
  5 +4s 320x480 3.5-inch 640x960
  6 +5 320x480 3.5-inch 640x960
  7 +5s 320x480 3.5-inch 640x960
  8 +6 320x480 3.5-inch 640x960
  9 +6p 320x480 3.5-inch 640x960
  10 +
  11 +**适配须知:**
2 12
3 原版设计图的约束数值都是按照iPhone6(4.7-inch)的设计给的,在项目中都是按照iPhone5(4-inch)的数值实际使用的 13 原版设计图的约束数值都是按照iPhone6(4.7-inch)的设计给的,在项目中都是按照iPhone5(4-inch)的数值实际使用的
4 14
5 -## 方法一 15 +**方法1:**
6 -**方法名:**  
7 16
8 `#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))` 17 `#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
9 18
@@ -12,8 +21,7 @@ @@ -12,8 +21,7 @@
12 在没有新的设计图的情况下,项目内的参数都需要这个宏来做处理 21 在没有新的设计图的情况下,项目内的参数都需要这个宏来做处理
13 22
14 23
15 -## 方法二 24 +**方法名2:**
16 -**方法名:**  
17 25
18 `#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))` 26 `#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
19 27