Latest | 1.0.0 |
---|---|
Homepage | https://github.com/casatwy/HandyAutoLayout |
License | MIT |
Platforms | ios 6.0, requires ARC |
Frameworks | UIKit |
Authors |
handy categories for generate NSLayoutConstraint programatically.
Install
if you are using AutoLayout:
pod 'HandyAutoLayout'
if you are using Frame:
pod 'HandyFrame'
Examples
for auto layout:
[self.view addConstraint:[self.tableView constraintCenterXEqualToView:self.view]];
[self.view addConstraint:[self.tableView constraintWidthEqualToView:self.view]];
[self.view addConstraints:[self.nextStepButton constraintsSize:CGSizeMake(300.0f, 40.0f)]];
[self.view addConstraint:[self.nextStepButton constraintCenterXEqualToView:self.view]];
for frame:
[self.subtitleLabel leftEqualToView:self.titleLabel];
[self.subtitleLabel top:14 FromView:self.timeLabel];
[self.createPost centerXEqualToView:self.view];
[self.createPost bottomInContainer:19.0f shouldResize:NO];
Latest podspec
{ "name": "HandyAutoLayout", "version": "1.0.0", "summary": "A handy methods for AutoLayout", "description": "A view category for AutoLayout handy methods", "homepage": "https://github.com/casatwy/HandyAutoLayout", "license": "MIT", "authors": { "CasaTaloyum": "[email protected]" }, "platforms": { "ios": "6.0" }, "source": { "git": "https://github.com/casatwy/HandyAutoLayout.git", "tag": "1.0.0" }, "source_files": [ "UIView+HandyAutoLayout.h", "UIView+HandyAutoLayout.m" ], "frameworks": "UIKit", "requires_arc": true }
Fri, 04 Mar 2016 17:51:04 +0000