Skip to content

Instantly share code, notes, and snippets.

View robertjpayne's full-sized avatar

Robert Payne robertjpayne

View GitHub Profile
@robertjpayne
robertjpayne / UIView+MasonryTagging.h
Created April 25, 2014 01:55
Tagging system for Masonry
#import <UIKit/UIKit.h>
#import <Masonry/Masonry.h>
@interface UIView (MasonryTagging)
- (void)prepareConstraintsWithTag:(NSString *)tag block:(void (^)(MASConstraintMaker *make))block;
- (void)removePreparedConstraintsWithTag:(NSString *)tag;
- (void)installConstraintsWithTag:(NSString *)tag;
- (void)installConstraintsWithTag:(NSString *)tag recursive:(BOOL)recursive;
- (void)uninstallConstraintsWithTag:(NSString *)tag;