Projets
Voir sur GitHub
casatwy/HandyAutoLayout
casatwy/HandyAutoLayout has 1,253 GitHub stars and 245 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and -1 in 15 days. Last checked 2026-11-21 00:27 UTC. Last push 2018-04-28.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
À propos
handy categories for generate NSLayoutConstraint programmatically, and layout your Frame easy
Outils de développementREADME.md
OriginalHandyAutoLayout
[
](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];