Created
October 23, 2013 15:28
-
-
Save lennypham/7120853 to your computer and use it in GitHub Desktop.
UIView category from @justin williams presentation on autolayout http://vimeopro.com/360conferences/360idev-2013/video/75232527
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import UIKit; | |
@interface UIView (SGAdditions) | |
+ (instancetype)sg_autolayoutVIew; | |
@end | |
#import "UIView+SGAdditions.h" | |
@implementation UIView (SGAdditions) | |
+ (instancetype)sg_autolayoutView | |
{ | |
UIView *view = [[self alloc] init]; | |
view.translatesAutoresizingMaskIntoConstraints = NO; | |
return view; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment