Latest 0.1.0
Homepage https://github.com/TorchLennon/LNMasonryCategory
License MIT
Platforms ios 7.0, requires ARC
Dependencies Masonry
Authors

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

[email protected], [email protected]

License

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

Latest podspec

{
    "name": "LNMasonryCategory",
    "version": "0.1.0",
    "summary": "A category of Masonry to activate/deactive constraints",
    "description": "A category of Masonry to activate/deactive constraints",
    "homepage": "https://github.com/TorchLennon/LNMasonryCategory",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lennon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TorchLennon/LNMasonryCategory.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "LNMasonryCategory/Classes/**/*",
    "requires_arc": true,
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This