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:09:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a12d1401b017587902a4dc56f345f7fc94d352c
3a12d140
1 parent
501fad93
Updated iPhone适配 (markdown)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
iPhone适配.md
iPhone适配.md
View file @
3a12d14
...
...
@@ -5,18 +5,16 @@
## 方法一
**方法名:**
`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
**适用环境:**
在没有新的设计图的情况下,项目内的参数都需要这个宏来做处理
## 方法二
**方法名:**
`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
**适用环境:**
在
\ No newline at end of file
在有iPhone6P新设计图的情况下,需要使用这个方法,第一个参数是:(原来按照iPhone6给的约束),第二个参数是:(新的按照iPhone6P给的约束)
...
...
Please
register
or
login
to post a comment