HandyAutoLayout

所属分类:collect
开发工具:Objective-C
文件大小:0KB
下载次数:0
上传日期:2018-04-28 14:29:54
上 传 者sh-1993
说明:  方便的类别,用于以编程方式生成NSLayoutConstraint,并轻松布局框架,
(handy categories for generate NSLayoutConstraint programmatically, and layout your Frame easy,)

文件列表:
HandyAutoLayout.podspec (6219, 2017-10-10)
HandyFrame.podspec (6206, 2017-10-10)
LICENSE (0, 2017-10-10)
UIView+HandyAutoLayout.h (1868, 2017-10-10)
UIView+HandyAutoLayout.m (7970, 2017-10-10)
UIView+LayoutMethods.h (5401, 2017-10-10)
UIView+LayoutMethods.m (14639, 2017-10-10)

# HandyAutoLayout [![CocoaPods compatible](https://img.shields.io/badge/CocoaPods-0.1.1-green.svg?style=flat)](https://cocoapods.org) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http:// opensource.org/licenses/MIT) `HandyAutoLayout` are handy categories for generate NSLayoutConstraint programatically. # New features ## Add new methods for 1.1.0 ```objective-c - (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: ```objective-c [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: ```objective-c [self.subtitleLabel leftEqualToView:self.titleLabel]; [self.subtitleLabel top:14 FromView:self.timeLabel]; [self.createPost centerXEqualToView:self.view]; [self.createPost bottomInContainer:19.0f shouldResize:NO]; ```

近期下载者

相关文件


收藏者