Skip to content

handy categories for generate NSLayoutConstraint programmatically, and Frame

License

Notifications You must be signed in to change notification settings

c-xiaoqiang/HandyAutoLayout

 
 

Repository files navigation

HandyAutoLayout

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];

About

handy categories for generate NSLayoutConstraint programmatically, and Frame

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 64.1%
  • Ruby 35.9%