Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
suyuexin
2015-12-01 17:16:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e75a672e154fe15007874f8230d2e919ba02cd3c
e75a672e
1 parent
574fe7bf
Updated iPhone适配 (markdown)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
iPhone适配.md
iPhone适配.md
View file @
e75a672
## 适配须知
**iPhone尺寸:**
3GS 320x480 3.5-inch 640x960
4 320x480 3.5-inch 640x960
4s 320x480 3.5-inch 640x960
5 320x480 3.5-inch 640x960
5s 320x480 3.5-inch 640x960
6 320x480 3.5-inch 640x960
6p 320x480 3.5-inch 640x960
**适配须知:**
原版设计图的约束数值都是按照iPhone6(4.7-inch)的设计给的,在项目中都是按照iPhone5(4-inch)的数值实际使用的
## 方法一
**方法名:**
**方法1:**
`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
...
...
@@ -12,8 +21,7 @@
在没有新的设计图的情况下,项目内的参数都需要这个宏来做处理
## 方法二
**方法名:**
**方法名2:**
`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
...
...
Please
register
or
login
to post a comment