Latest 0.1.6
Homepage https://github.com/lianleven/ViewLayout
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

Installation

只需将以下行添加到您的Podfile

pod 'ViewLayout'

ScreenShot

ViewLayoutViewLayout

Usage & Example

Example 是直接用 Masonry 的 UI 样式
在使用的文件中导入头文件

#import "UIView+layout.h"
[self.view addSubview:self.tableView];
[self.tableView layout_fill];

LLExampleBasicView 文件

[greenView layout_top:padding relation:NSLayoutRelationGreaterThanOrEqual toView:superview toAttribute:NSLayoutAttributeTop];
[greenView layout_left:padding toView:superview];
[greenView layout_bottom:-padding toView:blueView toAttribute:NSLayoutAttributeTop];
[greenView layout_right:-padding toView:redView toAttribute:NSLayoutAttributeLeft];
[greenView layout_widthEqualToView:redView];
[greenView layout_heightEqualToView:redView];
[greenView layout_heightEqualToView:blueView];

License

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

Latest podspec

{
    "name": "ViewLayout",
    "version": "0.1.6",
    "summary": "Use categories to easily use NSLayoutConstrain.",
    "description": "Use categories to easily use NSLayoutConstrain. nQuickly build your own UI framework without relying on third parties",
    "homepage": "https://github.com/lianleven/ViewLayout",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lianleven": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lianleven/ViewLayout.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ViewLayout/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This