jrturton/UIView-Autolayout
关于
Category on UIView to simplify the creation of common layout constraints
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文UIView-Autolayout
Do you really need this?
If you're making a new app targeting iOS9 or higher, I'd recommend using the new layout anchor functionality and stack views to achieve the layout you require. The layout anchor gives you concise creation of constraints in code, and stack views probably give you 90% of the layouts you were making yourself using constraints anyway.
Category on UIView to simplify the creation of common layout constraints. The code is described and introduced in this blog post.
Here's the API documentation on Cocoadocs.
The demo project is most of the way towards drawing a robot made of views arranged using all the category methods:

Installation
Using Cocoapods:
pod 'UIView-Autolayout', '~> 0.2.0'
Manually:
Download the source code and drag the files in the Source/ directory into your project.
Deprecated Methods
As of version 1.0.0, all deprecated methods will be removed from this category. All deprecated methods are marked with a compiler flag providing instructions on alternative methods to use but for more information check out the API documentation on the Cocoadocs website listed above.
If you are using Cocoapods and do not wish to upgrade to version 1.0.0 then you can specify the following in your Podfile:
pod 'UIView-Autolayout', '~> 0.2.0'
This will prevent Cocoapods installing any 1.0.0 updates.
探索相关项目
加载中…