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:05:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5888b048e55170e6eaa043ad4146e6e40042b774
5888b048
1 parent
df2c3934
Updated iPhone适配 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
iPhone适配.md
iPhone适配.md
View file @
5888b04
## 方法一
**适配的前提:**
原来设计图的约束数值都是按照iPhone6的设计给的,在项目中都是按照5(4-inch)的数值实际使用的
**方法名:**
`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
`#define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))`
**适用环境:**
status
## 方法二
**方法名:**
`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
`#define LayoutForFitIPhone6P(offsetForIPhone6,offsetForIPhone6P) ([DeviceTools is5p5InchPhone] ? offsetForIPhone6P : LayOutForScale(offsetForIPhone6))`
**适用环境:**
...
...
Please
register
or
login
to post a comment