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 16:55:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eb61461dfaf2cbe9dfa4aff7c65236066948c5b9
eb61461d
1 parent
1bbba6a8
Updated iPhone适配 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
iPhone适配.md
iPhone适配.md
View file @
eb61461
## 适配的方案
**方法1:**
#
define LayOutForScaleIPhone6P(offsetForIPhone6) ([DeviceTools is5p5InchPhone] ? (1.294 * offsetForIPhone6) : LayOutForScale(offsetForIPhone6))
define LayOutForScaleIPhone6P(offsetForIPhone6) (
[
DeviceTools is5p5InchPhone
]
? (1.294
*
offsetForIPhone6) : LayOutForScale(offsetForIPhone6))
**方法2:**
#
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