ViewLayout 0.1.6

ViewLayout 0.1.6

Maintained by lianleven.



  • By
  • lianleven

ViewLayout

Version License Platform

Installation

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

pod 'ViewLayout'

ScreenShot

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.