Skip to content

TorchLennon/LNMasonryCategory

Repository files navigation

LNMasonryCategory

CI Status Version License Platform

MASConstraint+LNMasonryCategory

基于优先级的约束管理对于复合界面布局来说非常方便,小小的问题是对于判断后使用activate/deactivate略显繁琐(比如在RAC的绑定上) 由此添加ln_installed,其实内部也还是调用Masonry的判断
Activate

NSArray+LNMASAdditions

Masonry本身提供的多视图等间距排列的方法只能适用于多个视图宽度或者高度相等的情况

- (void)ln_mas_distributeViewsAlongAxis:(MASAxisType)axisType withLeadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;

通过添加辅助视图的方式进行布局 Array

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

LNMasonryCategory is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LNMasonryCategory"

Author

ning.lennon@gmail.com, lennon@memeboxglobal.com

License

LNMasonryCategory is available under the MIT license. See the LICENSE file for more info.