Skip to content
通过CSSParser辅助布局
Objective-C Objective-C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CSSParserDemo.xcodeproj
CSSParserDemo.xcworkspace
CSSParserDemo
Pods
.gitignore
LICENSE
Podfile
Podfile.lock
README.md

README.md

CSSParserDemo

通过CSSParser辅助布局

作用:项目中使用.css来保存常量,使用RN中CssParser对.css进行解析,通过宏添加常量(颜色,数值)

优点: 1.避免了项目中魔鬼数字 2.不同机型适配 3.方便代码管理

You can’t perform that action at this time.