GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - casatwy/HandyAutoLayout: handy categories for generate NSLayoutConstraint programmatically, and layout your Frame easy

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
HandyAutoLayout.podspec
HandyAutoLayout.podspec
 
 
HandyFrame.podspec
HandyFrame.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
UIView+HandyAutoLayout.h
UIView+HandyAutoLayout.h
 
 
UIView+HandyAutoLayout.m
UIView+HandyAutoLayout.m
 
 
UIView+LayoutMethods.h
UIView+LayoutMethods.h
 
 
UIView+LayoutMethods.m
UIView+LayoutMethods.m
 
 

Repository files navigation

HandyAutoLayout

CocoaPods compatible [License: MIT](http:// opensource.org/licenses/MIT)

HandyAutoLayout are handy categories for generate NSLayoutConstraint programatically.

New features

Add new methods for 1.1.0

- (void)fromTheTop:(CGFloat)distance ofView:(UIView *)view;
- (void)fromTheBottom:(CGFloat)distance ofView:(UIView *)view;
- (void)fromTheLeft:(CGFloat)distance ofView:(UIView *)view;
- (void)fromTheRight:(CGFloat)distance ofView:(UIView *)view;

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 layout your Frame easy

Resources

Readme
License
Activity

Stars

1.3k stars

Watchers

50 watching

Forks

245 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.