基于优先级的约束管理对于复合界面布局来说非常方便,小小的问题是对于判断后使用activate/deactivate略显繁琐(比如在RAC的绑定上)
由此添加ln_installed
,其实内部也还是调用Masonry的判断
Masonry本身提供的多视图等间距排列的方法只能适用于多个视图宽度或者高度相等的情况
- (void)ln_mas_distributeViewsAlongAxis:(MASAxisType)axisType withLeadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;
To run the example project, clone the repo, and run pod install
from the Example directory first.
LNMasonryCategory is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LNMasonryCategory"
ning.lennon@gmail.com, lennon@memeboxglobal.com
LNMasonryCategory is available under the MIT license. See the LICENSE file for more info.