[
  {
    "path": "Masonry/CZOnlineNSStringEditor.h",
    "content": "//\n//  CZOnlineNSStringEditor.h\n//  ChengzhangOnline\n//\n//  Created by 郑士峰 on 15/8/29.\n//  Copyright (c) 2015年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n@interface CZOnlineNSStringEditor : NSObject\n/*!\n *  @brief  计算某个字符串的rect，并返回rect的size\n *\n *  @param aString   要计算的字符串\n *  @param limitSize 对该字符串的size限制条件\n *  @param fontSize  计算时使用的字符大小\n *\n */\n+ (CGSize)sizeOfStringWithString:(NSString *)aString limitSize:(CGSize)limitSize\n                        fontSize:(CGFloat)fontSize;\n+ (CGSize)sizeOfStringWithString:(NSString *)aString limitSize:(CGSize)limitSize\n                        fontSize:(CGFloat)fontSize font:(NSString *)font;\n\n+ (CGSize)sizeOfStringWithString:(NSString *)contentString\n          limitContentStringSize:(CGSize)limitStringSize\n               contentStringFont:(UIFont *)stringFont;\n\n@end\n"
  },
  {
    "path": "Masonry/CZOnlineNSStringEditor.m",
    "content": "//\n//  CZOnlineNSStringEditor.m\n//  ChengzhangOnline\n//\n//  Created by 郑士峰 on 15/8/29.\n//  Copyright (c) 2015年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import \"CZOnlineNSStringEditor.h\"\n\n@implementation CZOnlineNSStringEditor\n+ (CGSize)sizeOfStringWithString:(NSString *)aString limitSize:(CGSize)limitSize fontSize:(CGFloat)fontSize{\n    if (aString == nil || aString.length == 0) {\n        return CGSizeZero;\n    }\n    //获取字符串的range\n    NSRange range = NSMakeRange(0, aString.length);\n    \n    //创建 NSMutableAttributedString\n    NSMutableAttributedString * attributeString = [[NSMutableAttributedString alloc]initWithString:aString];\n    \n    //为attributeString添加相关属性\n    [attributeString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:fontSize] range:range];\n    \n    //计算字符串rect\n    //可选枚举的使用\n    CGRect stringRect = [attributeString boundingRectWithSize:limitSize options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading context:NULL];\n    \n    return stringRect.size;\n}\n\n+ (CGSize)sizeOfStringWithString:(NSString *)aString limitSize:(CGSize)limitSize fontSize:(CGFloat)fontSize font:(NSString *)font\n{\n    if (aString == nil || aString.length == 0) {\n        return CGSizeZero;\n    }\n    //获取字符串的range\n    NSRange range = NSMakeRange(0, aString.length);\n    \n    //创建 NSMutableAttributedString\n    NSMutableAttributedString * attributeString = [[NSMutableAttributedString alloc]initWithString:aString];\n    \n    //为attributeString添加相关属性\n    [attributeString addAttribute:NSFontAttributeName value:[UIFont fontWithName:font size:fontSize] range:range];\n    \n    //计算字符串rect\n    //可选枚举的使用\n    CGRect stringRect = [attributeString boundingRectWithSize:limitSize options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading context:NULL];\n    \n    return stringRect.size;\n}\n\n+ (CGSize)sizeOfStringWithString:(NSString *)contentString limitContentStringSize:(CGSize)limitStringSize contentStringFont:(UIFont *)stringFont\n{\n    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];\n    paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;\n    NSDictionary *attributes = @{NSFontAttributeName:stringFont, NSParagraphStyleAttributeName:paragraphStyle.copy};\n    CGSize labelsize = [contentString boundingRectWithSize:limitStringSize options:NSStringDrawingTruncatesLastVisibleLine|NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:attributes context:nil].size;\n    return labelsize;\n}\n\n@end\n"
  },
  {
    "path": "Masonry/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.cloudling.$(PRODUCT_NAME:rfc1034identifier)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>FMWK</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(CURRENT_PROJECT_VERSION)</string>\n\t<key>NSPrincipalClass</key>\n\t<string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Masonry/MASCompositeConstraint.h",
    "content": "//\n//  MASCompositeConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASUtilities.h\"\n\n/**\n *\tA group of MASConstraint objects\n */\n@interface MASCompositeConstraint : MASConstraint\n\n/**\n *\tCreates a composite with a predefined array of children\n *\n *\t@param\tchildren\tchild MASConstraints\n *\n *\t@return\ta composite constraint\n */\n- (id)initWithChildren:(NSArray *)children;\n\n@end\n"
  },
  {
    "path": "Masonry/MASCompositeConstraint.m",
    "content": "//\n//  MASCompositeConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASCompositeConstraint.h\"\n#import \"MASConstraint+Private.h\"\n\n@interface MASCompositeConstraint () <MASConstraintDelegate>\n\n@property (nonatomic, strong) id mas_key;\n@property (nonatomic, strong) NSMutableArray *childConstraints;\n\n@end\n\n@implementation MASCompositeConstraint\n\n- (id)initWithChildren:(NSArray *)children {\n    self = [super init];\n    if (!self) return nil;\n\n    _childConstraints = [children mutableCopy];\n    for (MASConstraint *constraint in _childConstraints) {\n        constraint.delegate = self;\n    }\n\n    return self;\n}\n\n#pragma mark - MASConstraintDelegate\n\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {\n    NSUInteger index = [self.childConstraints indexOfObject:constraint];\n    NSAssert(index != NSNotFound, @\"Could not find constraint %@\", constraint);\n    [self.childConstraints replaceObjectAtIndex:index withObject:replacementConstraint];\n}\n\n- (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    id<MASConstraintDelegate> strongDelegate = self.delegate;\n    MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n    newConstraint.delegate = self;\n    [self.childConstraints addObject:newConstraint];\n    return newConstraint;\n}\n\n#pragma mark - NSLayoutConstraint multiplier proxies \n\n- (MASConstraint * (^)(CGFloat))multipliedBy {\n    return ^id(CGFloat multiplier) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.multipliedBy(multiplier);\n        }\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGFloat))dividedBy {\n    return ^id(CGFloat divider) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.dividedBy(divider);\n        }\n        return self;\n    };\n}\n\n#pragma mark - MASLayoutPriority proxy\n\n- (MASConstraint * (^)(MASLayoutPriority))priority {\n    return ^id(MASLayoutPriority priority) {\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.priority(priority);\n        }\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutRelation proxy\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation {\n    return ^id(id attr, NSLayoutRelation relation) {\n        for (MASConstraint *constraint in self.childConstraints.copy) {\n            constraint.equalToWithRelation(attr, relation);\n        }\n        return self;\n    };\n}\n\n#pragma mark - attribute chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    [self constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n    return self;\n}\n\n#pragma mark - Animator proxy\n\n#if TARGET_OS_MAC && !TARGET_OS_IPHONE\n\n- (MASConstraint *)animator {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint animator];\n    }\n    return self;\n}\n\n#endif\n\n#pragma mark - debug helpers\n\n- (MASConstraint * (^)(id))key {\n    return ^id(id key) {\n        self.mas_key = key;\n        int i = 0;\n        for (MASConstraint *constraint in self.childConstraints) {\n            constraint.key([NSString stringWithFormat:@\"%@[%d]\", key, i++]);\n        }\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant setters\n\n- (void)setInsets:(MASEdgeInsets)insets {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.insets = insets;\n    }\n}\n\n- (void)setOffset:(CGFloat)offset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.offset = offset;\n    }\n}\n\n- (void)setSizeOffset:(CGSize)sizeOffset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.sizeOffset = sizeOffset;\n    }\n}\n\n- (void)setCenterOffset:(CGPoint)centerOffset {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.centerOffset = centerOffset;\n    }\n}\n\n#pragma mark - MASConstraint\n\n- (void)activate {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint activate];\n    }\n}\n\n- (void)deactivate {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint deactivate];\n    }\n}\n\n- (void)install {\n    for (MASConstraint *constraint in self.childConstraints) {\n        constraint.updateExisting = self.updateExisting;\n        [constraint install];\n    }\n}\n\n- (void)uninstall {\n    for (MASConstraint *constraint in self.childConstraints) {\n        [constraint uninstall];\n    }\n}\n\n@end\n"
  },
  {
    "path": "Masonry/MASConstraint+Private.h",
    "content": "//\n//  MASConstraint+Private.h\n//  Masonry\n//\n//  Created by Nick Tymchenko on 29/04/14.\n//  Copyright (c) 2014 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n\n@protocol MASConstraintDelegate;\n\n\n@interface MASConstraint ()\n\n/**\n *  Whether or not to check for an existing constraint instead of adding constraint\n */\n@property (nonatomic, assign) BOOL updateExisting;\n\n/**\n *\tUsually MASConstraintMaker but could be a parent MASConstraint\n */\n@property (nonatomic, weak) id<MASConstraintDelegate> delegate;\n\n/**\n *  Based on a provided value type, is equal to calling:\n *  NSNumber - setOffset:\n *  NSValue with CGPoint - setPointOffset:\n *  NSValue with CGSize - setSizeOffset:\n *  NSValue with MASEdgeInsets - setInsets:\n */\n- (void)setLayoutConstantWithValue:(NSValue *)value;\n\n@end\n\n\n@interface MASConstraint (Abstract)\n\n/**\n *\tSets the constraint relation to given NSLayoutRelation\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation;\n\n/**\n *\tOverride to set a custom chaining behaviour\n */\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n@end\n\n\n@protocol MASConstraintDelegate <NSObject>\n\n/**\n *\tNotifies the delegate when the constraint needs to be replaced with another constraint. For example\n *  A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks\n */\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint;\n\n- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n@end\n"
  },
  {
    "path": "Masonry/MASConstraint.h",
    "content": "//\n//  MASConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tEnables Constraints to be created with chainable syntax\n *  Constraint can represent single NSLayoutConstraint (MASViewConstraint) \n *  or a group of NSLayoutConstraints (MASComposisteConstraint)\n */\n@interface MASConstraint : NSObject\n\n// Chaining Support\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (MASConstraint * (^)(MASEdgeInsets insets))insets;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeWidth, NSLayoutAttributeHeight\n */\n- (MASConstraint * (^)(CGSize offset))sizeOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeCenterX, NSLayoutAttributeCenterY\n */\n- (MASConstraint * (^)(CGPoint offset))centerOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant\n */\n- (MASConstraint * (^)(CGFloat offset))offset;\n\n/**\n *  Modifies the NSLayoutConstraint constant based on a value type\n */\n- (MASConstraint * (^)(NSValue *value))valueOffset;\n\n/**\n *\tSets the NSLayoutConstraint multiplier property\n */\n- (MASConstraint * (^)(CGFloat multiplier))multipliedBy;\n\n/**\n *\tSets the NSLayoutConstraint multiplier to 1.0/dividedBy\n */\n- (MASConstraint * (^)(CGFloat divider))dividedBy;\n\n/**\n *\tSets the NSLayoutConstraint priority to a float or MASLayoutPriority\n */\n- (MASConstraint * (^)(MASLayoutPriority priority))priority;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityLow\n */\n- (MASConstraint * (^)())priorityLow;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityMedium\n */\n- (MASConstraint * (^)())priorityMedium;\n\n/**\n *\tSets the NSLayoutConstraint priority to MASLayoutPriorityHigh\n */\n- (MASConstraint * (^)())priorityHigh;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))equalTo;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationGreaterThanOrEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))greaterThanOrEqualTo;\n\n/**\n *\tSets the constraint relation to NSLayoutRelationLessThanOrEqual\n *  returns a block which accepts one of the following:\n *    MASViewAttribute, UIView, NSValue, NSArray\n *  see readme for more details.\n */\n- (MASConstraint * (^)(id attr))lessThanOrEqualTo;\n\n/**\n *\tOptional semantic property which has no effect but improves the readability of constraint\n */\n- (MASConstraint *)with;\n\n/**\n *\tOptional semantic property which has no effect but improves the readability of constraint\n */\n- (MASConstraint *)and;\n\n/**\n *\tCreates a new MASCompositeConstraint with the called attribute and reciever\n */\n- (MASConstraint *)left;\n- (MASConstraint *)top;\n- (MASConstraint *)right;\n- (MASConstraint *)bottom;\n- (MASConstraint *)leading;\n- (MASConstraint *)trailing;\n- (MASConstraint *)width;\n- (MASConstraint *)height;\n- (MASConstraint *)centerX;\n- (MASConstraint *)centerY;\n- (MASConstraint *)baseline;\n\n#if TARGET_OS_IPHONE\n\n- (MASConstraint *)leftMargin;\n- (MASConstraint *)rightMargin;\n- (MASConstraint *)topMargin;\n- (MASConstraint *)bottomMargin;\n- (MASConstraint *)leadingMargin;\n- (MASConstraint *)trailingMargin;\n- (MASConstraint *)centerXWithinMargins;\n- (MASConstraint *)centerYWithinMargins;\n\n#endif\n\n\n/**\n *\tSets the constraint debug name\n */\n- (MASConstraint * (^)(id key))key;\n\n// NSLayoutConstraint constant Setters\n// for use outside of mas_updateConstraints/mas_makeConstraints blocks\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight\n */\n- (void)setInsets:(MASEdgeInsets)insets;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeWidth, NSLayoutAttributeHeight\n */\n- (void)setSizeOffset:(CGSize)sizeOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant,\n *  only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following\n *  NSLayoutAttributeCenterX, NSLayoutAttributeCenterY\n */\n- (void)setCenterOffset:(CGPoint)centerOffset;\n\n/**\n *\tModifies the NSLayoutConstraint constant\n */\n- (void)setOffset:(CGFloat)offset;\n\n\n// NSLayoutConstraint Installation support\n\n#if TARGET_OS_MAC && !TARGET_OS_IPHONE\n/**\n *  Whether or not to go through the animator proxy when modifying the constraint\n */\n@property (nonatomic, copy, readonly) MASConstraint *animator;\n#endif\n\n/**\n *  Activates an NSLayoutConstraint if it's supported by an OS. \n *  Invokes install otherwise.\n */\n- (void)activate;\n\n/**\n *  Deactivates previously installed/activated NSLayoutConstraint.\n */\n- (void)deactivate;\n\n/**\n *\tCreates a NSLayoutConstraint and adds it to the appropriate view.\n */\n- (void)install;\n\n/**\n *\tRemoves previously installed NSLayoutConstraint\n */\n- (void)uninstall;\n\n@end\n\n\n/**\n *  Convenience auto-boxing macros for MASConstraint methods.\n *\n *  Defining MAS_SHORTHAND_GLOBALS will turn on auto-boxing for default syntax.\n *  A potential drawback of this is that the unprefixed macros will appear in global scope.\n */\n#define mas_equalTo(...)                 equalTo(MASBoxValue((__VA_ARGS__)))\n#define mas_greaterThanOrEqualTo(...)    greaterThanOrEqualTo(MASBoxValue((__VA_ARGS__)))\n#define mas_lessThanOrEqualTo(...)       lessThanOrEqualTo(MASBoxValue((__VA_ARGS__)))\n\n#define mas_offset(...)                  valueOffset(MASBoxValue((__VA_ARGS__)))\n\n\n#ifdef MAS_SHORTHAND_GLOBALS\n\n#define equalTo(...)                     mas_equalTo(__VA_ARGS__)\n#define greaterThanOrEqualTo(...)        mas_greaterThanOrEqualTo(__VA_ARGS__)\n#define lessThanOrEqualTo(...)           mas_lessThanOrEqualTo(__VA_ARGS__)\n\n#define offset(...)                      mas_offset(__VA_ARGS__)\n\n#endif\n\n\n@interface MASConstraint (AutoboxingSupport)\n\n/**\n *  Aliases to corresponding relation methods (for shorthand macros)\n *  Also needed to aid autocompletion\n */\n- (MASConstraint * (^)(id attr))mas_equalTo;\n- (MASConstraint * (^)(id attr))mas_greaterThanOrEqualTo;\n- (MASConstraint * (^)(id attr))mas_lessThanOrEqualTo;\n\n/**\n *  A dummy method to aid autocompletion\n */\n- (MASConstraint * (^)(id offset))mas_offset;\n\n@end\n"
  },
  {
    "path": "Masonry/MASConstraint.m",
    "content": "//\n//  MASConstraint.m\n//  Masonry\n//\n//  Created by Nick Tymchenko on 1/20/14.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASConstraint+Private.h\"\n\n#define MASMethodNotImplemented() \\\n    @throw [NSException exceptionWithName:NSInternalInconsistencyException \\\n                                   reason:[NSString stringWithFormat:@\"You must override %@ in a subclass.\", NSStringFromSelector(_cmd)] \\\n                                 userInfo:nil]\n\n@implementation MASConstraint\n\n#pragma mark - Init\n\n- (id)init {\n\tNSAssert(![self isMemberOfClass:[MASConstraint class]], @\"MASConstraint is an abstract class, you should not instantiate it directly.\");\n\treturn [super init];\n}\n\n#pragma mark - NSLayoutRelation proxies\n\n- (MASConstraint * (^)(id))equalTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_equalTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))greaterThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_greaterThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationGreaterThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))lessThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual);\n    };\n}\n\n- (MASConstraint * (^)(id))mas_lessThanOrEqualTo {\n    return ^id(id attribute) {\n        return self.equalToWithRelation(attribute, NSLayoutRelationLessThanOrEqual);\n    };\n}\n\n#pragma mark - MASLayoutPriority proxies\n\n- (MASConstraint * (^)())priorityLow {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultLow);\n        return self;\n    };\n}\n\n- (MASConstraint * (^)())priorityMedium {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultMedium);\n        return self;\n    };\n}\n\n- (MASConstraint * (^)())priorityHigh {\n    return ^id{\n        self.priority(MASLayoutPriorityDefaultHigh);\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant proxies\n\n- (MASConstraint * (^)(MASEdgeInsets))insets {\n    return ^id(MASEdgeInsets insets){\n        self.insets = insets;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGSize))sizeOffset {\n    return ^id(CGSize offset) {\n        self.sizeOffset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGPoint))centerOffset {\n    return ^id(CGPoint offset) {\n        self.centerOffset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(CGFloat))offset {\n    return ^id(CGFloat offset){\n        self.offset = offset;\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(NSValue *value))valueOffset {\n    return ^id(NSValue *offset) {\n        NSAssert([offset isKindOfClass:NSValue.class], @\"expected an NSValue offset, got: %@\", offset);\n        [self setLayoutConstantWithValue:offset];\n        return self;\n    };\n}\n\n- (MASConstraint * (^)(id offset))mas_offset {\n    // Will never be called due to macro\n    return nil;\n}\n\n#pragma mark - NSLayoutConstraint constant setter\n\n- (void)setLayoutConstantWithValue:(NSValue *)value {\n    if ([value isKindOfClass:NSNumber.class]) {\n        self.offset = [(NSNumber *)value doubleValue];\n    } else if (strcmp(value.objCType, @encode(CGPoint)) == 0) {\n        CGPoint point;\n        [value getValue:&point];\n        self.centerOffset = point;\n    } else if (strcmp(value.objCType, @encode(CGSize)) == 0) {\n        CGSize size;\n        [value getValue:&size];\n        self.sizeOffset = size;\n    } else if (strcmp(value.objCType, @encode(MASEdgeInsets)) == 0) {\n        MASEdgeInsets insets;\n        [value getValue:&insets];\n        self.insets = insets;\n    } else {\n        NSAssert(NO, @\"attempting to set layout constant with unsupported value: %@\", value);\n    }\n}\n\n#pragma mark - Semantic properties\n\n- (MASConstraint *)with {\n    return self;\n}\n\n- (MASConstraint *)and {\n    return self;\n}\n\n#pragma mark - Chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute __unused)layoutAttribute {\n    MASMethodNotImplemented();\n}\n\n- (MASConstraint *)left {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASConstraint *)top {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASConstraint *)right {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASConstraint *)bottom {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASConstraint *)leading {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASConstraint *)trailing {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASConstraint *)width {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASConstraint *)height {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASConstraint *)centerX {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASConstraint *)centerY {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASConstraint *)baseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline];\n}\n\n#if TARGET_OS_IPHONE\n\n- (MASConstraint *)leftMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASConstraint *)rightMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASConstraint *)topMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASConstraint *)bottomMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASConstraint *)leadingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASConstraint *)trailingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASConstraint *)centerXWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASConstraint *)centerYWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n#pragma mark - Abstract\n\n- (MASConstraint * (^)(CGFloat multiplier))multipliedBy { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(CGFloat divider))dividedBy { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(MASLayoutPriority priority))priority { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { MASMethodNotImplemented(); }\n\n- (MASConstraint * (^)(id key))key { MASMethodNotImplemented(); }\n\n- (void)setInsets:(MASEdgeInsets __unused)insets { MASMethodNotImplemented(); }\n\n- (void)setSizeOffset:(CGSize __unused)sizeOffset { MASMethodNotImplemented(); }\n\n- (void)setCenterOffset:(CGPoint __unused)centerOffset { MASMethodNotImplemented(); }\n\n- (void)setOffset:(CGFloat __unused)offset { MASMethodNotImplemented(); }\n\n#if TARGET_OS_MAC && !TARGET_OS_IPHONE\n\n- (MASConstraint *)animator { MASMethodNotImplemented(); }\n\n#endif\n\n- (void)activate { MASMethodNotImplemented(); }\n\n- (void)deactivate { MASMethodNotImplemented(); }\n\n- (void)install { MASMethodNotImplemented(); }\n\n- (void)uninstall { MASMethodNotImplemented(); }\n\n@end\n"
  },
  {
    "path": "Masonry/MASConstraintMaker.h",
    "content": "//\n//  MASConstraintBuilder.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraint.h\"\n#import \"MASUtilities.h\"\n\ntypedef NS_OPTIONS(NSInteger, MASAttribute) {\n    MASAttributeLeft = 1 << NSLayoutAttributeLeft,\n    MASAttributeRight = 1 << NSLayoutAttributeRight,\n    MASAttributeTop = 1 << NSLayoutAttributeTop,\n    MASAttributeBottom = 1 << NSLayoutAttributeBottom,\n    MASAttributeLeading = 1 << NSLayoutAttributeLeading,\n    MASAttributeTrailing = 1 << NSLayoutAttributeTrailing,\n    MASAttributeWidth = 1 << NSLayoutAttributeWidth,\n    MASAttributeHeight = 1 << NSLayoutAttributeHeight,\n    MASAttributeCenterX = 1 << NSLayoutAttributeCenterX,\n    MASAttributeCenterY = 1 << NSLayoutAttributeCenterY,\n    MASAttributeBaseline = 1 << NSLayoutAttributeBaseline,\n    \n#if TARGET_OS_IPHONE\n    \n    MASAttributeLeftMargin = 1 << NSLayoutAttributeLeftMargin,\n    MASAttributeRightMargin = 1 << NSLayoutAttributeRightMargin,\n    MASAttributeTopMargin = 1 << NSLayoutAttributeTopMargin,\n    MASAttributeBottomMargin = 1 << NSLayoutAttributeBottomMargin,\n    MASAttributeLeadingMargin = 1 << NSLayoutAttributeLeadingMargin,\n    MASAttributeTrailingMargin = 1 << NSLayoutAttributeTrailingMargin,\n    MASAttributeCenterXWithinMargins = 1 << NSLayoutAttributeCenterXWithinMargins,\n    MASAttributeCenterYWithinMargins = 1 << NSLayoutAttributeCenterYWithinMargins,\n\n#endif\n    \n};\n\n/**\n *  Provides factory methods for creating MASConstraints.\n *  Constraints are collected until they are ready to be installed\n *\n */\n@interface MASConstraintMaker : NSObject\n\n/**\n *\tThe following properties return a new MASViewConstraint\n *  with the first item set to the makers associated view and the appropriate MASViewAttribute\n */\n@property (nonatomic, strong, readonly) MASConstraint *left;\n@property (nonatomic, strong, readonly) MASConstraint *top;\n@property (nonatomic, strong, readonly) MASConstraint *right;\n@property (nonatomic, strong, readonly) MASConstraint *bottom;\n@property (nonatomic, strong, readonly) MASConstraint *leading;\n@property (nonatomic, strong, readonly) MASConstraint *trailing;\n@property (nonatomic, strong, readonly) MASConstraint *width;\n@property (nonatomic, strong, readonly) MASConstraint *height;\n@property (nonatomic, strong, readonly) MASConstraint *centerX;\n@property (nonatomic, strong, readonly) MASConstraint *centerY;\n@property (nonatomic, strong, readonly) MASConstraint *baseline;\n\n#if TARGET_OS_IPHONE\n\n@property (nonatomic, strong, readonly) MASConstraint *leftMargin;\n@property (nonatomic, strong, readonly) MASConstraint *rightMargin;\n@property (nonatomic, strong, readonly) MASConstraint *topMargin;\n@property (nonatomic, strong, readonly) MASConstraint *bottomMargin;\n@property (nonatomic, strong, readonly) MASConstraint *leadingMargin;\n@property (nonatomic, strong, readonly) MASConstraint *trailingMargin;\n@property (nonatomic, strong, readonly) MASConstraint *centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASConstraint *centerYWithinMargins;\n\n#endif\n\n/**\n *  Returns a block which creates a new MASCompositeConstraint with the first item set\n *  to the makers associated view and children corresponding to the set bits in the\n *  MASAttribute parameter. Combine multiple attributes via binary-or.\n */\n@property (nonatomic, strong, readonly) MASConstraint *(^attributes)(MASAttribute attrs);\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeEdges\n *  which generates the appropriate MASViewConstraint children (top, left, bottom, right)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *edges;\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeSize\n *  which generates the appropriate MASViewConstraint children (width, height)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *size;\n\n/**\n *\tCreates a MASCompositeConstraint with type MASCompositeConstraintTypeCenter\n *  which generates the appropriate MASViewConstraint children (centerX, centerY)\n *  with the first item set to the makers associated view\n */\n@property (nonatomic, strong, readonly) MASConstraint *center;\n\n/**\n *  Whether or not to check for an existing constraint instead of adding constraint\n */\n@property (nonatomic, assign) BOOL updateExisting;\n\n/**\n *  Whether or not to remove existing constraints prior to installing\n */\n@property (nonatomic, assign) BOOL removeExisting;\n\n/**\n *\tinitialises the maker with a default view\n *\n *\t@param\tview\tany MASConstrait are created with this view as the first item\n *\n *\t@return\ta new MASConstraintMaker\n */\n- (id)initWithView:(MAS_VIEW *)view;\n\n/**\n *\tCalls install method on any MASConstraints which have been created by this maker\n *\n *\t@return\tan array of all the installed MASConstraints\n */\n- (NSArray *)install;\n\n- (MASConstraint * (^)(dispatch_block_t))group;\n\n@end\n"
  },
  {
    "path": "Masonry/MASConstraintMaker.m",
    "content": "//\n//  MASConstraintBuilder.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASConstraintMaker.h\"\n#import \"MASViewConstraint.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASConstraint+Private.h\"\n#import \"MASViewAttribute.h\"\n#import \"View+MASAdditions.h\"\n\n@interface MASConstraintMaker () <MASConstraintDelegate>\n\n@property (nonatomic, weak) MAS_VIEW *view;\n@property (nonatomic, strong) NSMutableArray *constraints;\n\n@end\n\n@implementation MASConstraintMaker\n\n- (id)initWithView:(MAS_VIEW *)view {\n    self = [super init];\n    if (!self) return nil;\n    \n    self.view = view;\n    self.constraints = NSMutableArray.new;\n    \n    return self;\n}\n\n- (NSArray *)install {\n    if (self.removeExisting) {\n        NSArray *installedConstraints = [MASViewConstraint installedConstraintsForView:self.view];\n        for (MASConstraint *constraint in installedConstraints) {\n            [constraint uninstall];\n        }\n    }\n    NSArray *constraints = self.constraints.copy;\n    for (MASConstraint *constraint in constraints) {\n        constraint.updateExisting = self.updateExisting;\n        [constraint install];\n    }\n    [self.constraints removeAllObjects];\n    return constraints;\n}\n\n#pragma mark - MASConstraintDelegate\n\n- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {\n    NSUInteger index = [self.constraints indexOfObject:constraint];\n    NSAssert(index != NSNotFound, @\"Could not find constraint %@\", constraint);\n    [self.constraints replaceObjectAtIndex:index withObject:replacementConstraint];\n}\n\n- (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    MASViewAttribute *viewAttribute = [[MASViewAttribute alloc] initWithView:self.view layoutAttribute:layoutAttribute];\n    MASViewConstraint *newConstraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:viewAttribute];\n    if ([constraint isKindOfClass:MASViewConstraint.class]) {\n        //replace with composite constraint\n        NSArray *children = @[constraint, newConstraint];\n        MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n        compositeConstraint.delegate = self;\n        [self constraint:constraint shouldBeReplacedWithConstraint:compositeConstraint];\n        return compositeConstraint;\n    }\n    if (!constraint) {\n        newConstraint.delegate = self;\n        [self.constraints addObject:newConstraint];\n    }\n    return newConstraint;\n}\n\n- (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {\n    __unused MASAttribute anyAttribute = (MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading\n                                          | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX\n                                          | MASAttributeCenterY | MASAttributeBaseline\n#if TARGET_OS_IPHONE\n                                          | MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin\n                                          | MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins\n                                          | MASAttributeCenterYWithinMargins\n#endif\n                                          );\n    \n    NSAssert((attrs & anyAttribute) != 0, @\"You didn't pass any attribute to make.attributes(...)\");\n    \n    NSMutableArray *attributes = [NSMutableArray array];\n    \n    if (attrs & MASAttributeLeft) [attributes addObject:self.view.mas_left];\n    if (attrs & MASAttributeRight) [attributes addObject:self.view.mas_right];\n    if (attrs & MASAttributeTop) [attributes addObject:self.view.mas_top];\n    if (attrs & MASAttributeBottom) [attributes addObject:self.view.mas_bottom];\n    if (attrs & MASAttributeLeading) [attributes addObject:self.view.mas_leading];\n    if (attrs & MASAttributeTrailing) [attributes addObject:self.view.mas_trailing];\n    if (attrs & MASAttributeWidth) [attributes addObject:self.view.mas_width];\n    if (attrs & MASAttributeHeight) [attributes addObject:self.view.mas_height];\n    if (attrs & MASAttributeCenterX) [attributes addObject:self.view.mas_centerX];\n    if (attrs & MASAttributeCenterY) [attributes addObject:self.view.mas_centerY];\n    if (attrs & MASAttributeBaseline) [attributes addObject:self.view.mas_baseline];\n    \n#if TARGET_OS_IPHONE\n    \n    if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin];\n    if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin];\n    if (attrs & MASAttributeTopMargin) [attributes addObject:self.view.mas_topMargin];\n    if (attrs & MASAttributeBottomMargin) [attributes addObject:self.view.mas_bottomMargin];\n    if (attrs & MASAttributeLeadingMargin) [attributes addObject:self.view.mas_leadingMargin];\n    if (attrs & MASAttributeTrailingMargin) [attributes addObject:self.view.mas_trailingMargin];\n    if (attrs & MASAttributeCenterXWithinMargins) [attributes addObject:self.view.mas_centerXWithinMargins];\n    if (attrs & MASAttributeCenterYWithinMargins) [attributes addObject:self.view.mas_centerYWithinMargins];\n    \n#endif\n    \n    NSMutableArray *children = [NSMutableArray arrayWithCapacity:attributes.count];\n    \n    for (MASViewAttribute *a in attributes) {\n        [children addObject:[[MASViewConstraint alloc] initWithFirstViewAttribute:a]];\n    }\n    \n    MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n    constraint.delegate = self;\n    [self.constraints addObject:constraint];\n    return constraint;\n}\n\n#pragma mark - standard Attributes\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    return [self constraint:nil addConstraintWithLayoutAttribute:layoutAttribute];\n}\n\n- (MASConstraint *)left {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASConstraint *)top {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASConstraint *)right {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASConstraint *)bottom {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASConstraint *)leading {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASConstraint *)trailing {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASConstraint *)width {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASConstraint *)height {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASConstraint *)centerX {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASConstraint *)centerY {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASConstraint *)baseline {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline];\n}\n\n- (MASConstraint *(^)(MASAttribute))attributes {\n    return ^(MASAttribute attrs){\n        return [self addConstraintWithAttributes:attrs];\n    };\n}\n\n#if TARGET_OS_IPHONE\n\n- (MASConstraint *)leftMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASConstraint *)rightMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASConstraint *)topMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASConstraint *)bottomMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASConstraint *)leadingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASConstraint *)trailingMargin {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASConstraint *)centerXWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASConstraint *)centerYWithinMargins {\n    return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n\n#pragma mark - composite Attributes\n\n- (MASConstraint *)edges {\n    return [self addConstraintWithAttributes:MASAttributeTop | MASAttributeLeft | MASAttributeRight | MASAttributeBottom];\n}\n\n- (MASConstraint *)size {\n    return [self addConstraintWithAttributes:MASAttributeWidth | MASAttributeHeight];\n}\n\n- (MASConstraint *)center {\n    return [self addConstraintWithAttributes:MASAttributeCenterX | MASAttributeCenterY];\n}\n\n#pragma mark - grouping\n\n- (MASConstraint *(^)(dispatch_block_t group))group {\n    return ^id(dispatch_block_t group) {\n        NSInteger previousCount = self.constraints.count;\n        group();\n\n        NSArray *children = [self.constraints subarrayWithRange:NSMakeRange(previousCount, self.constraints.count - previousCount)];\n        MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n        constraint.delegate = self;\n        return constraint;\n    };\n}\n\n@end\n"
  },
  {
    "path": "Masonry/MASLayoutConstraint.h",
    "content": "//\n//  MASLayoutConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tWhen you are debugging or printing the constraints attached to a view this subclass\n *  makes it easier to identify which constraints have been created via Masonry\n */\n@interface MASLayoutConstraint : NSLayoutConstraint\n\n/**\n *\ta key to associate with this constraint\n */\n@property (nonatomic, strong) id mas_key;\n\n@end\n"
  },
  {
    "path": "Masonry/MASLayoutConstraint.m",
    "content": "//\n//  MASLayoutConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASLayoutConstraint.h\"\n\n@implementation MASLayoutConstraint\n\n@end\n"
  },
  {
    "path": "Masonry/MASUtilities.h",
    "content": "//\n//  MASUtilities.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 19/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#if TARGET_OS_IPHONE\n\n    #import <UIKit/UIKit.h>\n    #define MAS_VIEW UIView\n    #define MAS_VIEW_CONTROLLER UIViewController\n    #define MASEdgeInsets UIEdgeInsets\n\n    typedef UILayoutPriority MASLayoutPriority;\n    static const MASLayoutPriority MASLayoutPriorityRequired = UILayoutPriorityRequired;\n    static const MASLayoutPriority MASLayoutPriorityDefaultHigh = UILayoutPriorityDefaultHigh;\n    static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 500;\n    static const MASLayoutPriority MASLayoutPriorityDefaultLow = UILayoutPriorityDefaultLow;\n    static const MASLayoutPriority MASLayoutPriorityFittingSizeLevel = UILayoutPriorityFittingSizeLevel;\n\n#elif TARGET_OS_MAC\n\n    #import <AppKit/AppKit.h>\n    #define MAS_VIEW NSView\n    #define MASEdgeInsets NSEdgeInsets\n\n    typedef NSLayoutPriority MASLayoutPriority;\n    static const MASLayoutPriority MASLayoutPriorityRequired = NSLayoutPriorityRequired;\n    static const MASLayoutPriority MASLayoutPriorityDefaultHigh = NSLayoutPriorityDefaultHigh;\n    static const MASLayoutPriority MASLayoutPriorityDragThatCanResizeWindow = NSLayoutPriorityDragThatCanResizeWindow;\n    static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 501;\n    static const MASLayoutPriority MASLayoutPriorityWindowSizeStayPut = NSLayoutPriorityWindowSizeStayPut;\n    static const MASLayoutPriority MASLayoutPriorityDragThatCannotResizeWindow = NSLayoutPriorityDragThatCannotResizeWindow;\n    static const MASLayoutPriority MASLayoutPriorityDefaultLow = NSLayoutPriorityDefaultLow;\n    static const MASLayoutPriority MASLayoutPriorityFittingSizeCompression = NSLayoutPriorityFittingSizeCompression;\n\n#endif\n\n/**\n *\tAllows you to attach keys to objects matching the variable names passed.\n *\n *  view1.mas_key = @\"view1\", view2.mas_key = @\"view2\";\n *\n *  is equivalent to:\n *\n *  MASAttachKeys(view1, view2);\n */\n#define MASAttachKeys(...)                                                    \\\n    NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__);     \\\n    for (id key in keyPairs.allKeys) {                                        \\\n        id obj = keyPairs[key];                                               \\\n        NSAssert([obj respondsToSelector:@selector(setMas_key:)],             \\\n                 @\"Cannot attach mas_key to %@\", obj);                        \\\n        [obj setMas_key:key];                                                 \\\n    }\n\n/**\n *  Used to create object hashes\n *  Based on http://www.mikeash.com/pyblog/friday-qa-2010-06-18-implementing-equality-and-hashing.html\n */\n#define MAS_NSUINT_BIT (CHAR_BIT * sizeof(NSUInteger))\n#define MAS_NSUINTROTATE(val, howmuch) ((((NSUInteger)val) << howmuch) | (((NSUInteger)val) >> (MAS_NSUINT_BIT - howmuch)))\n\n/**\n *  Given a scalar or struct value, wraps it in NSValue\n *  Based on EXPObjectify: https://github.com/specta/expecta\n */\nstatic inline id _MASBoxValue(const char *type, ...) {\n    va_list v;\n    va_start(v, type);\n    id obj = nil;\n    if (strcmp(type, @encode(id)) == 0) {\n        id actual = va_arg(v, id);\n        obj = actual;\n    } else if (strcmp(type, @encode(CGPoint)) == 0) {\n        CGPoint actual = (CGPoint)va_arg(v, CGPoint);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(CGSize)) == 0) {\n        CGSize actual = (CGSize)va_arg(v, CGSize);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(MASEdgeInsets)) == 0) {\n        MASEdgeInsets actual = (MASEdgeInsets)va_arg(v, MASEdgeInsets);\n        obj = [NSValue value:&actual withObjCType:type];\n    } else if (strcmp(type, @encode(double)) == 0) {\n        double actual = (double)va_arg(v, double);\n        obj = [NSNumber numberWithDouble:actual];\n    } else if (strcmp(type, @encode(float)) == 0) {\n        float actual = (float)va_arg(v, double);\n        obj = [NSNumber numberWithFloat:actual];\n    } else if (strcmp(type, @encode(int)) == 0) {\n        int actual = (int)va_arg(v, int);\n        obj = [NSNumber numberWithInt:actual];\n    } else if (strcmp(type, @encode(long)) == 0) {\n        long actual = (long)va_arg(v, long);\n        obj = [NSNumber numberWithLong:actual];\n    } else if (strcmp(type, @encode(long long)) == 0) {\n        long long actual = (long long)va_arg(v, long long);\n        obj = [NSNumber numberWithLongLong:actual];\n    } else if (strcmp(type, @encode(short)) == 0) {\n        short actual = (short)va_arg(v, int);\n        obj = [NSNumber numberWithShort:actual];\n    } else if (strcmp(type, @encode(char)) == 0) {\n        char actual = (char)va_arg(v, int);\n        obj = [NSNumber numberWithChar:actual];\n    } else if (strcmp(type, @encode(bool)) == 0) {\n        bool actual = (bool)va_arg(v, int);\n        obj = [NSNumber numberWithBool:actual];\n    } else if (strcmp(type, @encode(unsigned char)) == 0) {\n        unsigned char actual = (unsigned char)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedChar:actual];\n    } else if (strcmp(type, @encode(unsigned int)) == 0) {\n        unsigned int actual = (unsigned int)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedInt:actual];\n    } else if (strcmp(type, @encode(unsigned long)) == 0) {\n        unsigned long actual = (unsigned long)va_arg(v, unsigned long);\n        obj = [NSNumber numberWithUnsignedLong:actual];\n    } else if (strcmp(type, @encode(unsigned long long)) == 0) {\n        unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long);\n        obj = [NSNumber numberWithUnsignedLongLong:actual];\n    } else if (strcmp(type, @encode(unsigned short)) == 0) {\n        unsigned short actual = (unsigned short)va_arg(v, unsigned int);\n        obj = [NSNumber numberWithUnsignedShort:actual];\n    }\n    va_end(v);\n    return obj;\n}\n\n#define MASBoxValue(value) _MASBoxValue(@encode(__typeof__((value))), (value))\n"
  },
  {
    "path": "Masonry/MASViewAttribute.h",
    "content": "//\n//  MASAttribute.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *  An immutable tuple which stores the view and the related NSLayoutAttribute.\n *  Describes part of either the left or right hand side of a constraint equation\n */\n@interface MASViewAttribute : NSObject\n\n/**\n *  The view which the reciever relates to. Can be nil if item is not a view.\n */\n@property (nonatomic, weak, readonly) MAS_VIEW *view;\n\n/**\n *  The item which the reciever relates to.\n */\n@property (nonatomic, weak, readonly) id item;\n\n/**\n *  The attribute which the reciever relates to\n */\n@property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute;\n\n/**\n *  Convenience initializer.\n */\n- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n/**\n *  The designated initializer.\n */\n- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute;\n\n/**\n *\tDetermine whether the layoutAttribute is a size attribute\n *\n *\t@return\tYES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight\n */\n- (BOOL)isSizeAttribute;\n\n@end\n"
  },
  {
    "path": "Masonry/MASViewAttribute.m",
    "content": "//\n//  MASAttribute.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 21/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewAttribute.h\"\n\n@implementation MASViewAttribute\n\n- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    self = [self initWithView:view item:view layoutAttribute:layoutAttribute];\n    return self;\n}\n\n- (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    self = [super init];\n    if (!self) return nil;\n    \n    _view = view;\n    _item = item;\n    _layoutAttribute = layoutAttribute;\n    \n    return self;\n}\n\n- (BOOL)isSizeAttribute {\n    return self.layoutAttribute == NSLayoutAttributeWidth\n        || self.layoutAttribute == NSLayoutAttributeHeight;\n}\n\n- (BOOL)isEqual:(MASViewAttribute *)viewAttribute {\n    if ([viewAttribute isKindOfClass:self.class]) {\n        return self.view == viewAttribute.view\n            && self.layoutAttribute == viewAttribute.layoutAttribute;\n    }\n    return [super isEqual:viewAttribute];\n}\n\n- (NSUInteger)hash {\n    return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute;\n}\n\n@end\n"
  },
  {
    "path": "Masonry/MASViewConstraint.h",
    "content": "//\n//  MASConstraint.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewAttribute.h\"\n#import \"MASConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"MASUtilities.h\"\n\n/**\n *  A single constraint.\n *  Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view\n */\n@interface MASViewConstraint : MASConstraint <NSCopying>\n\n/**\n *\tFirst item/view and first attribute of the NSLayoutConstraint\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute;\n\n/**\n *\tSecond item/view and second attribute of the NSLayoutConstraint\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute;\n\n/**\n *\tinitialises the MASViewConstraint with the first part of the equation\n *\n *\t@param\tfirstViewAttribute\tview.mas_left, view.mas_width etc.\n *\n *\t@return\ta new view constraint\n */\n- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute;\n\n/**\n *  Returns all MASViewConstraints installed with this view as a first item.\n *\n *  @param  view  A view to retrieve constraints for.\n *\n *  @return An array of MASViewConstraints.\n */\n+ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view;\n\n@end\n"
  },
  {
    "path": "Masonry/MASViewConstraint.m",
    "content": "//\n//  MASConstraint.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASViewConstraint.h\"\n#import \"MASConstraint+Private.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"View+MASAdditions.h\"\n#import <objc/runtime.h>\n\n@interface MAS_VIEW (MASConstraints)\n\n@property (nonatomic, readonly) NSMutableSet *mas_installedConstraints;\n\n@end\n\n@implementation MAS_VIEW (MASConstraints)\n\nstatic char kInstalledConstraintsKey;\n\n- (NSMutableSet *)mas_installedConstraints {\n    NSMutableSet *constraints = objc_getAssociatedObject(self, &kInstalledConstraintsKey);\n    if (!constraints) {\n        constraints = [NSMutableSet set];\n        objc_setAssociatedObject(self, &kInstalledConstraintsKey, constraints, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n    return constraints;\n}\n\n@end\n\n\n@interface MASViewConstraint ()\n\n@property (nonatomic, strong, readwrite) MASViewAttribute *secondViewAttribute;\n@property (nonatomic, weak) MAS_VIEW *installedView;\n@property (nonatomic, weak) MASLayoutConstraint *layoutConstraint;\n@property (nonatomic, assign) NSLayoutRelation layoutRelation;\n@property (nonatomic, assign) MASLayoutPriority layoutPriority;\n@property (nonatomic, assign) CGFloat layoutMultiplier;\n@property (nonatomic, assign) CGFloat layoutConstant;\n@property (nonatomic, assign) BOOL hasLayoutRelation;\n@property (nonatomic, strong) id mas_key;\n@property (nonatomic, assign) BOOL useAnimator;\n\n@end\n\n@implementation MASViewConstraint\n\n- (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute {\n    self = [super init];\n    if (!self) return nil;\n    \n    _firstViewAttribute = firstViewAttribute;\n    self.layoutPriority = MASLayoutPriorityRequired;\n    self.layoutMultiplier = 1;\n    \n    return self;\n}\n\n#pragma mark - NSCoping\n\n- (id)copyWithZone:(NSZone __unused *)zone {\n    MASViewConstraint *constraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:self.firstViewAttribute];\n    constraint.layoutConstant = self.layoutConstant;\n    constraint.layoutRelation = self.layoutRelation;\n    constraint.layoutPriority = self.layoutPriority;\n    constraint.layoutMultiplier = self.layoutMultiplier;\n    constraint.delegate = self.delegate;\n    return constraint;\n}\n\n#pragma mark - Public\n\n+ (NSArray *)installedConstraintsForView:(MAS_VIEW *)view {\n    return [view.mas_installedConstraints allObjects];\n}\n\n#pragma mark - Private\n\n- (void)setLayoutConstant:(CGFloat)layoutConstant {\n    _layoutConstant = layoutConstant;\n\n#if TARGET_OS_MAC && !TARGET_OS_IPHONE\n    if (self.useAnimator) {\n        [self.layoutConstraint.animator setConstant:layoutConstant];\n    } else {\n        self.layoutConstraint.constant = layoutConstant;\n    }\n#else\n    self.layoutConstraint.constant = layoutConstant;\n#endif\n}\n\n- (void)setLayoutRelation:(NSLayoutRelation)layoutRelation {\n    _layoutRelation = layoutRelation;\n    self.hasLayoutRelation = YES;\n}\n\n- (BOOL)supportsActiveProperty {\n    return [self.layoutConstraint respondsToSelector:@selector(isActive)];\n}\n\n- (BOOL)isActive {\n    BOOL active = YES;\n    if ([self supportsActiveProperty]) {\n        active = [self.layoutConstraint isActive];\n    }\n\n    return active;\n}\n\n- (BOOL)hasBeenInstalled {\n    return (self.layoutConstraint != nil) && [self isActive];\n}\n\n- (void)setSecondViewAttribute:(id)secondViewAttribute {\n    if ([secondViewAttribute isKindOfClass:NSValue.class]) {\n        [self setLayoutConstantWithValue:secondViewAttribute];\n    } else if ([secondViewAttribute isKindOfClass:MAS_VIEW.class]) {\n        _secondViewAttribute = [[MASViewAttribute alloc] initWithView:secondViewAttribute layoutAttribute:self.firstViewAttribute.layoutAttribute];\n    } else if ([secondViewAttribute isKindOfClass:MASViewAttribute.class]) {\n        _secondViewAttribute = secondViewAttribute;\n    } else {\n        NSAssert(NO, @\"attempting to add unsupported attribute: %@\", secondViewAttribute);\n    }\n}\n\n#pragma mark - NSLayoutConstraint multiplier proxies\n\n- (MASConstraint * (^)(CGFloat))multipliedBy {\n    return ^id(CGFloat multiplier) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint multiplier after it has been installed\");\n        \n        self.layoutMultiplier = multiplier;\n        return self;\n    };\n}\n\n\n- (MASConstraint * (^)(CGFloat))dividedBy {\n    return ^id(CGFloat divider) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint multiplier after it has been installed\");\n\n        self.layoutMultiplier = 1.0/divider;\n        return self;\n    };\n}\n\n#pragma mark - MASLayoutPriority proxy\n\n- (MASConstraint * (^)(MASLayoutPriority))priority {\n    return ^id(MASLayoutPriority priority) {\n        NSAssert(!self.hasBeenInstalled,\n                 @\"Cannot modify constraint priority after it has been installed\");\n        \n        self.layoutPriority = priority;\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutRelation proxy\n\n- (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation {\n    return ^id(id attribute, NSLayoutRelation relation) {\n        if ([attribute isKindOfClass:NSArray.class]) {\n            NSAssert(!self.hasLayoutRelation, @\"Redefinition of constraint relation\");\n            NSMutableArray *children = NSMutableArray.new;\n            for (id attr in attribute) {\n                MASViewConstraint *viewConstraint = [self copy];\n                viewConstraint.secondViewAttribute = attr;\n                [children addObject:viewConstraint];\n            }\n            MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children];\n            compositeConstraint.delegate = self.delegate;\n            [self.delegate constraint:self shouldBeReplacedWithConstraint:compositeConstraint];\n            return compositeConstraint;\n        } else {\n            NSAssert(!self.hasLayoutRelation || self.layoutRelation == relation && [attribute isKindOfClass:NSValue.class], @\"Redefinition of constraint relation\");\n            self.layoutRelation = relation;\n            self.secondViewAttribute = attribute;\n            return self;\n        }\n    };\n}\n\n#pragma mark - Semantic properties\n\n- (MASConstraint *)with {\n    return self;\n}\n\n- (MASConstraint *)and {\n    return self;\n}\n\n#pragma mark - attribute chaining\n\n- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {\n    NSAssert(!self.hasLayoutRelation, @\"Attributes should be chained before defining the constraint relation\");\n\n    return [self.delegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];\n}\n\n#pragma mark - Animator proxy\n\n#if TARGET_OS_MAC && !TARGET_OS_IPHONE\n\n- (MASConstraint *)animator {\n    self.useAnimator = YES;\n    return self;\n}\n\n#endif\n\n#pragma mark - debug helpers\n\n- (MASConstraint * (^)(id))key {\n    return ^id(id key) {\n        self.mas_key = key;\n        return self;\n    };\n}\n\n#pragma mark - NSLayoutConstraint constant setters\n\n- (void)setInsets:(MASEdgeInsets)insets {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeLeft:\n        case NSLayoutAttributeLeading:\n            self.layoutConstant = insets.left;\n            break;\n        case NSLayoutAttributeTop:\n            self.layoutConstant = insets.top;\n            break;\n        case NSLayoutAttributeBottom:\n            self.layoutConstant = -insets.bottom;\n            break;\n        case NSLayoutAttributeRight:\n        case NSLayoutAttributeTrailing:\n            self.layoutConstant = -insets.right;\n            break;\n        default:\n            break;\n    }\n}\n\n- (void)setOffset:(CGFloat)offset {\n    self.layoutConstant = offset;\n}\n\n- (void)setSizeOffset:(CGSize)sizeOffset {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeWidth:\n            self.layoutConstant = sizeOffset.width;\n            break;\n        case NSLayoutAttributeHeight:\n            self.layoutConstant = sizeOffset.height;\n            break;\n        default:\n            break;\n    }\n}\n\n- (void)setCenterOffset:(CGPoint)centerOffset {\n    NSLayoutAttribute layoutAttribute = self.firstViewAttribute.layoutAttribute;\n    switch (layoutAttribute) {\n        case NSLayoutAttributeCenterX:\n            self.layoutConstant = centerOffset.x;\n            break;\n        case NSLayoutAttributeCenterY:\n            self.layoutConstant = centerOffset.y;\n            break;\n        default:\n            break;\n    }\n}\n\n#pragma mark - MASConstraint\n\n- (void)activate {\n    if ([self supportsActiveProperty] && self.layoutConstraint) {\n        if (self.hasBeenInstalled) {\n            return;\n        }\n        self.layoutConstraint.active = YES;\n        [self.firstViewAttribute.view.mas_installedConstraints addObject:self];\n    } else {\n        [self install];\n    }\n}\n\n- (void)deactivate {\n    if ([self supportsActiveProperty]) {\n        self.layoutConstraint.active = NO;\n        [self.firstViewAttribute.view.mas_installedConstraints removeObject:self];\n    } else {\n        [self uninstall];\n    }\n}\n\n- (void)install {\n    if (self.hasBeenInstalled) {\n        return;\n    }\n    \n    MAS_VIEW *firstLayoutItem = self.firstViewAttribute.item;\n    NSLayoutAttribute firstLayoutAttribute = self.firstViewAttribute.layoutAttribute;\n    MAS_VIEW *secondLayoutItem = self.secondViewAttribute.item;\n    NSLayoutAttribute secondLayoutAttribute = self.secondViewAttribute.layoutAttribute;\n\n    // alignment attributes must have a secondViewAttribute\n    // therefore we assume that is refering to superview\n    // eg make.left.equalTo(@10)\n    if (!self.firstViewAttribute.isSizeAttribute && !self.secondViewAttribute) {\n        secondLayoutItem = self.firstViewAttribute.view.superview;\n        secondLayoutAttribute = firstLayoutAttribute;\n    }\n    \n    MASLayoutConstraint *layoutConstraint\n        = [MASLayoutConstraint constraintWithItem:firstLayoutItem\n                                        attribute:firstLayoutAttribute\n                                        relatedBy:self.layoutRelation\n                                           toItem:secondLayoutItem\n                                        attribute:secondLayoutAttribute\n                                       multiplier:self.layoutMultiplier\n                                         constant:self.layoutConstant];\n    \n    layoutConstraint.priority = self.layoutPriority;\n    layoutConstraint.mas_key = self.mas_key;\n    \n    if (self.secondViewAttribute.view) {\n        MAS_VIEW *closestCommonSuperview = [self.firstViewAttribute.view mas_closestCommonSuperview:self.secondViewAttribute.view];\n        NSAssert(closestCommonSuperview,\n                 @\"couldn't find a common superview for %@ and %@\",\n                 self.firstViewAttribute.view, self.secondViewAttribute.view);\n        self.installedView = closestCommonSuperview;\n    } else if (self.firstViewAttribute.isSizeAttribute) {\n        self.installedView = self.firstViewAttribute.view;\n    } else {\n        self.installedView = self.firstViewAttribute.view.superview;\n    }\n\n\n    MASLayoutConstraint *existingConstraint = nil;\n    if (self.updateExisting) {\n        existingConstraint = [self layoutConstraintSimilarTo:layoutConstraint];\n    }\n    if (existingConstraint) {\n        // just update the constant\n        existingConstraint.constant = layoutConstraint.constant;\n        self.layoutConstraint = existingConstraint;\n    } else {\n        [self.installedView addConstraint:layoutConstraint];\n        self.layoutConstraint = layoutConstraint;\n        [firstLayoutItem.mas_installedConstraints addObject:self];\n    }\n}\n\n- (MASLayoutConstraint *)layoutConstraintSimilarTo:(MASLayoutConstraint *)layoutConstraint {\n    // check if any constraints are the same apart from the only mutable property constant\n\n    // go through constraints in reverse as we do not want to match auto-resizing or interface builder constraints\n    // and they are likely to be added first.\n    for (NSLayoutConstraint *existingConstraint in self.installedView.constraints.reverseObjectEnumerator) {\n        if (![existingConstraint isKindOfClass:MASLayoutConstraint.class]) continue;\n        if (existingConstraint.firstItem != layoutConstraint.firstItem) continue;\n        if (existingConstraint.secondItem != layoutConstraint.secondItem) continue;\n        if (existingConstraint.firstAttribute != layoutConstraint.firstAttribute) continue;\n        if (existingConstraint.secondAttribute != layoutConstraint.secondAttribute) continue;\n        if (existingConstraint.relation != layoutConstraint.relation) continue;\n        if (existingConstraint.multiplier != layoutConstraint.multiplier) continue;\n        if (existingConstraint.priority != layoutConstraint.priority) continue;\n\n        return (id)existingConstraint;\n    }\n    return nil;\n}\n\n- (void)uninstall {\n    [self.installedView removeConstraint:self.layoutConstraint];\n    self.layoutConstraint = nil;\n    self.installedView = nil;\n    \n    [self.firstViewAttribute.view.mas_installedConstraints removeObject:self];\n}\n\n@end\n"
  },
  {
    "path": "Masonry/Masonry.h",
    "content": "//\n//  Masonry.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for Masonry.\nFOUNDATION_EXPORT double MasonryVersionNumber;\n\n//! Project version string for Masonry.\nFOUNDATION_EXPORT const unsigned char MasonryVersionString[];\n\n#import \"MASUtilities.h\"\n#import \"View+MASAdditions.h\"\n#import \"View+MASShorthandAdditions.h\"\n#import \"ViewController+MASAdditions.h\"\n#import \"NSArray+MASAdditions.h\"\n#import \"NSArray+MASShorthandAdditions.h\"\n#import \"MASConstraint.h\"\n#import \"MASCompositeConstraint.h\"\n#import \"MASViewAttribute.h\"\n#import \"MASViewConstraint.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASLayoutConstraint.h\"\n#import \"NSLayoutConstraint+MASDebugAdditions.h\"\n"
  },
  {
    "path": "Masonry/NSArray+MASAdditions.h",
    "content": "//\n//  NSArray+MASAdditions.h\n//\n//\n//  Created by Daniel Hammond on 11/26/13.\n//\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\ntypedef NS_ENUM(NSUInteger, MASAxisType) {\n    MASAxisTypeHorizontal,\n    MASAxisTypeVertical\n};\n\n@interface NSArray (MASAdditions)\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing on each view\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created MASConstraints\n */\n- (NSArray *)mas_makeConstraints:(void (^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view.\n *  If an existing constraint exists then it will be updated instead.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_updateConstraints:(void (^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with each view in the callee.\n *  Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view.\n *  All constraints previously installed for the views will be removed.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to each view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_remakeConstraints:(void (^)(MASConstraintMaker *make))block;\n\n/**\n *  distribute with fixed spacing\n *\n *  @param axisType     which axis to distribute items along\n *  @param fixedSpacing the spacing between each item\n *  @param leadSpacing  the spacing before the first item and the container\n *  @param tailSpacing  the spacing after the last item and the container\n */\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;\n\n/**\n *  distribute with fixed item size\n *\n *  @param axisType        which axis to distribute items along\n *  @param fixedItemLength the fixed length of each item\n *  @param leadSpacing     the spacing before the first item and the container\n *  @param tailSpacing     the spacing after the last item and the container\n */\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing;\n\n@end\n"
  },
  {
    "path": "Masonry/NSArray+MASAdditions.m",
    "content": "//\n//  NSArray+MASAdditions.m\n//  \n//\n//  Created by Daniel Hammond on 11/26/13.\n//\n//\n\n#import \"NSArray+MASAdditions.h\"\n#import \"View+MASAdditions.h\"\n\n@implementation NSArray (MASAdditions)\n\n- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_makeConstraints:block]];\n    }\n    return constraints;\n}\n\n- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_updateConstraints:block]];\n    }\n    return constraints;\n}\n\n- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block {\n    NSMutableArray *constraints = [NSMutableArray array];\n    for (MAS_VIEW *view in self) {\n        NSAssert([view isKindOfClass:[MAS_VIEW class]], @\"All objects in the array must be views\");\n        [constraints addObjectsFromArray:[view mas_remakeConstraints:block]];\n    }\n    return constraints;\n}\n\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedSpacing:(CGFloat)fixedSpacing leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing {\n    if (self.count < 2) {\n        NSAssert(self.count>1,@\"views to distribute need to bigger than one\");\n        return;\n    }\n    \n    MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews];\n    if (axisType == MASAxisTypeHorizontal) {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    make.width.equalTo(prev);\n                    make.left.equalTo(prev.mas_right).offset(fixedSpacing);\n                    if (i == (CGFloat)self.count - 1) {//last one\n                        make.right.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                }\n                else {//first one\n                    make.left.equalTo(tempSuperView).offset(leadSpacing);\n                }\n                \n            }];\n            prev = v;\n        }\n    }\n    else {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    make.height.equalTo(prev);\n                    make.top.equalTo(prev.mas_bottom).offset(fixedSpacing);\n                    if (i == (CGFloat)self.count - 1) {//last one\n                        make.bottom.equalTo(tempSuperView).offset(-tailSpacing);\n                    }                    \n                }\n                else {//first one\n                    make.top.equalTo(tempSuperView).offset(leadSpacing);\n                }\n                \n            }];\n            prev = v;\n        }\n    }\n}\n\n- (void)mas_distributeViewsAlongAxis:(MASAxisType)axisType withFixedItemLength:(CGFloat)fixedItemLength leadSpacing:(CGFloat)leadSpacing tailSpacing:(CGFloat)tailSpacing {\n    if (self.count < 2) {\n        NSAssert(self.count>1,@\"views to distribute need to bigger than one\");\n        return;\n    }\n    \n    MAS_VIEW *tempSuperView = [self mas_commonSuperviewOfViews];\n    if (axisType == MASAxisTypeHorizontal) {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));\n                    make.width.equalTo(@(fixedItemLength));\n                    if (i == (CGFloat)self.count - 1) {//last one\n                        make.right.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                    else {\n                        make.right.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset);\n                    }\n                }\n                else {//first one\n                    make.left.equalTo(tempSuperView).offset(leadSpacing);\n                    make.width.equalTo(@(fixedItemLength));\n                }\n            }];\n            prev = v;\n        }\n    }\n    else {\n        MAS_VIEW *prev;\n        for (int i = 0; i < self.count; i++) {\n            MAS_VIEW *v = self[i];\n            [v mas_makeConstraints:^(MASConstraintMaker *make) {\n                if (prev) {\n                    CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));\n                    make.height.equalTo(@(fixedItemLength));\n                    if (i == (CGFloat)self.count - 1) {//last one\n                        make.bottom.equalTo(tempSuperView).offset(-tailSpacing);\n                    }\n                    else {\n                        make.bottom.equalTo(tempSuperView).multipliedBy(i/((CGFloat)self.count-1)).with.offset(offset);\n                    }\n                }\n                else {//first one\n                    make.top.equalTo(tempSuperView).offset(leadSpacing);\n                    make.height.equalTo(@(fixedItemLength));\n                }\n            }];\n            prev = v;\n        }\n    }\n}\n\n- (MAS_VIEW *)mas_commonSuperviewOfViews\n{\n    MAS_VIEW *commonSuperview = nil;\n    MAS_VIEW *previousView = nil;\n    for (id object in self) {\n        if ([object isKindOfClass:[MAS_VIEW class]]) {\n            MAS_VIEW *view = (MAS_VIEW *)object;\n            if (previousView) {\n                commonSuperview = [view mas_closestCommonSuperview:commonSuperview];\n            } else {\n                commonSuperview = view;\n            }\n            previousView = view;\n        }\n    }\n    NSAssert(commonSuperview, @\"Can't constrain views that do not share a common superview. Make sure that all the views in this array have been added into the same view hierarchy.\");\n    return commonSuperview;\n}\n\n@end\n"
  },
  {
    "path": "Masonry/NSArray+MASShorthandAdditions.h",
    "content": "//\n//  NSArray+MASShorthandAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"NSArray+MASAdditions.h\"\n\n#ifdef MAS_SHORTHAND\n\n/**\n *\tShorthand array additions without the 'mas_' prefixes,\n *  only enabled if MAS_SHORTHAND is defined\n */\n@interface NSArray (MASShorthandAdditions)\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n@end\n\n@implementation NSArray (MASShorthandAdditions)\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_makeConstraints:block];\n}\n\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_updateConstraints:block];\n}\n\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_remakeConstraints:block];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Masonry/NSLayoutConstraint+MASDebugAdditions.h",
    "content": "//\n//  NSLayoutConstraint+MASDebugAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n\n/**\n *\tmakes debug and log output of NSLayoutConstraints more readable\n */\n@interface NSLayoutConstraint (MASDebugAdditions)\n\n@end\n"
  },
  {
    "path": "Masonry/NSLayoutConstraint+MASDebugAdditions.m",
    "content": "//\n//  NSLayoutConstraint+MASDebugAdditions.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 3/08/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"NSLayoutConstraint+MASDebugAdditions.h\"\n#import \"MASConstraint.h\"\n#import \"MASLayoutConstraint.h\"\n\n@implementation NSLayoutConstraint (MASDebugAdditions)\n\n#pragma mark - description maps\n\n+ (NSDictionary *)layoutRelationDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n        descriptionMap = @{\n            @(NSLayoutRelationEqual)                : @\"==\",\n            @(NSLayoutRelationGreaterThanOrEqual)   : @\">=\",\n            @(NSLayoutRelationLessThanOrEqual)      : @\"<=\",\n        };\n    });\n    return descriptionMap;\n}\n\n+ (NSDictionary *)layoutAttributeDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n        descriptionMap = @{\n            @(NSLayoutAttributeTop)      : @\"top\",\n            @(NSLayoutAttributeLeft)     : @\"left\",\n            @(NSLayoutAttributeBottom)   : @\"bottom\",\n            @(NSLayoutAttributeRight)    : @\"right\",\n            @(NSLayoutAttributeLeading)  : @\"leading\",\n            @(NSLayoutAttributeTrailing) : @\"trailing\",\n            @(NSLayoutAttributeWidth)    : @\"width\",\n            @(NSLayoutAttributeHeight)   : @\"height\",\n            @(NSLayoutAttributeCenterX)  : @\"centerX\",\n            @(NSLayoutAttributeCenterY)  : @\"centerY\",\n            @(NSLayoutAttributeBaseline) : @\"baseline\",\n            \n#if TARGET_OS_IPHONE\n            @(NSLayoutAttributeLeftMargin)           : @\"leftMargin\",\n            @(NSLayoutAttributeRightMargin)          : @\"rightMargin\",\n            @(NSLayoutAttributeTopMargin)            : @\"topMargin\",\n            @(NSLayoutAttributeBottomMargin)         : @\"bottomMargin\",\n            @(NSLayoutAttributeLeadingMargin)        : @\"leadingMargin\",\n            @(NSLayoutAttributeTrailingMargin)       : @\"trailingMargin\",\n            @(NSLayoutAttributeCenterXWithinMargins) : @\"centerXWithinMargins\",\n            @(NSLayoutAttributeCenterYWithinMargins) : @\"centerYWithinMargins\",\n#endif\n            \n        };\n    \n    });\n    return descriptionMap;\n}\n\n\n+ (NSDictionary *)layoutPriorityDescriptionsByValue {\n    static dispatch_once_t once;\n    static NSDictionary *descriptionMap;\n    dispatch_once(&once, ^{\n#if TARGET_OS_IPHONE\n        descriptionMap = @{\n            @(MASLayoutPriorityDefaultHigh)      : @\"high\",\n            @(MASLayoutPriorityDefaultLow)       : @\"low\",\n            @(MASLayoutPriorityDefaultMedium)    : @\"medium\",\n            @(MASLayoutPriorityRequired)         : @\"required\",\n            @(MASLayoutPriorityFittingSizeLevel) : @\"fitting size\",\n        };\n#elif TARGET_OS_MAC\n        descriptionMap = @{\n            @(MASLayoutPriorityDefaultHigh)                 : @\"high\",\n            @(MASLayoutPriorityDragThatCanResizeWindow)     : @\"drag can resize window\",\n            @(MASLayoutPriorityDefaultMedium)               : @\"medium\",\n            @(MASLayoutPriorityWindowSizeStayPut)           : @\"window size stay put\",\n            @(MASLayoutPriorityDragThatCannotResizeWindow)  : @\"drag cannot resize window\",\n            @(MASLayoutPriorityDefaultLow)                  : @\"low\",\n            @(MASLayoutPriorityFittingSizeCompression)      : @\"fitting size\",\n            @(MASLayoutPriorityRequired)                    : @\"required\",\n        };\n#endif\n    });\n    return descriptionMap;\n}\n\n#pragma mark - description override\n\n+ (NSString *)descriptionForObject:(id)obj {\n    if ([obj respondsToSelector:@selector(mas_key)] && [obj mas_key]) {\n        return [NSString stringWithFormat:@\"%@:%@\", [obj class], [obj mas_key]];\n    }\n    return [NSString stringWithFormat:@\"%@:%p\", [obj class], obj];\n}\n\n- (NSString *)description {\n    NSMutableString *description = [[NSMutableString alloc] initWithString:@\"<\"];\n\n    [description appendString:[self.class descriptionForObject:self]];\n\n    [description appendFormat:@\" %@\", [self.class descriptionForObject:self.firstItem]];\n    if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\".%@\", self.class.layoutAttributeDescriptionsByValue[@(self.firstAttribute)]];\n    }\n\n    [description appendFormat:@\" %@\", self.class.layoutRelationDescriptionsByValue[@(self.relation)]];\n\n    if (self.secondItem) {\n        [description appendFormat:@\" %@\", [self.class descriptionForObject:self.secondItem]];\n    }\n    if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\".%@\", self.class.layoutAttributeDescriptionsByValue[@(self.secondAttribute)]];\n    }\n    \n    if (self.multiplier != 1) {\n        [description appendFormat:@\" * %g\", self.multiplier];\n    }\n    \n    if (self.secondAttribute == NSLayoutAttributeNotAnAttribute) {\n        [description appendFormat:@\" %g\", self.constant];\n    } else {\n        if (self.constant) {\n            [description appendFormat:@\" %@ %g\", (self.constant < 0 ? @\"-\" : @\"+\"), ABS(self.constant)];\n        }\n    }\n\n    if (self.priority != MASLayoutPriorityRequired) {\n        [description appendFormat:@\" ^%@\", self.class.layoutPriorityDescriptionsByValue[@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]];\n    }\n\n    [description appendString:@\">\"];\n    return description;\n}\n\n@end\n"
  },
  {
    "path": "Masonry/View+MASAdditions.h",
    "content": "//\n//  UIView+MASAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\n/**\n *\tProvides constraint maker block\n *  and convience methods for creating MASViewAttribute which are view + NSLayoutAttribute pairs\n */\n@interface MAS_VIEW (MASAdditions)\n\n/**\n *\tfollowing properties return a new MASViewAttribute with current view and appropriate NSLayoutAttribute\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_left;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_top;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_right;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leading;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_width;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_height;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *(^mas_attribute)(NSLayoutAttribute attr);\n\n#if TARGET_OS_IPHONE\n\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_leadingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_trailingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_centerYWithinMargins;\n\n#endif\n\n/**\n *\ta key to associate with this view\n */\n@property (nonatomic, strong) id mas_key;\n\n/**\n *\tFinds the closest common superview between this view and another view\n *\n *\t@param\tview\tother view\n *\n *\t@return\treturns nil if common superview could not be found\n */\n- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created MASConstraints\n */\n- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing.\n *  If an existing constraint exists then it will be updated instead.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block;\n\n/**\n *  Creates a MASConstraintMaker with the callee view.\n *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing.\n *  All constraints previously installed for the view will be removed.\n *\n *  @param block scope within which you can build up the constraints which you wish to apply to the view.\n *\n *  @return Array of created/updated MASConstraints\n */\n- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n@end\n"
  },
  {
    "path": "Masonry/View+MASAdditions.m",
    "content": "//\n//  UIView+MASAdditions.m\n//  Masonry\n//\n//  Created by Jonas Budelmann on 20/07/13.\n//  Copyright (c) 2013 cloudling. All rights reserved.\n//\n\n#import \"View+MASAdditions.h\"\n#import <objc/runtime.h>\n\n@implementation MAS_VIEW (MASAdditions)\n\n- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    constraintMaker.updateExisting = YES;\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n- (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block {\n    self.translatesAutoresizingMaskIntoConstraints = NO;\n    MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self];\n    constraintMaker.removeExisting = YES;\n    block(constraintMaker);\n    return [constraintMaker install];\n}\n\n#pragma mark - NSLayoutAttribute properties\n\n- (MASViewAttribute *)mas_left {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeft];\n}\n\n- (MASViewAttribute *)mas_top {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTop];\n}\n\n- (MASViewAttribute *)mas_right {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRight];\n}\n\n- (MASViewAttribute *)mas_bottom {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASViewAttribute *)mas_leading {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeading];\n}\n\n- (MASViewAttribute *)mas_trailing {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailing];\n}\n\n- (MASViewAttribute *)mas_width {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeWidth];\n}\n\n- (MASViewAttribute *)mas_height {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeHeight];\n}\n\n- (MASViewAttribute *)mas_centerX {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterX];\n}\n\n- (MASViewAttribute *)mas_centerY {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterY];\n}\n\n- (MASViewAttribute *)mas_baseline {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBaseline];\n}\n\n- (MASViewAttribute *(^)(NSLayoutAttribute))mas_attribute\n{\n    return ^(NSLayoutAttribute attr) {\n        return [[MASViewAttribute alloc] initWithView:self layoutAttribute:attr];\n    };\n}\n\n#if TARGET_OS_IPHONE\n\n- (MASViewAttribute *)mas_leftMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeftMargin];\n}\n\n- (MASViewAttribute *)mas_rightMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRightMargin];\n}\n\n- (MASViewAttribute *)mas_topMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTopMargin];\n}\n\n- (MASViewAttribute *)mas_bottomMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottomMargin];\n}\n\n- (MASViewAttribute *)mas_leadingMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeadingMargin];\n}\n\n- (MASViewAttribute *)mas_trailingMargin {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailingMargin];\n}\n\n- (MASViewAttribute *)mas_centerXWithinMargins {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterXWithinMargins];\n}\n\n- (MASViewAttribute *)mas_centerYWithinMargins {\n    return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterYWithinMargins];\n}\n\n#endif\n\n#pragma mark - associated properties\n\n- (id)mas_key {\n    return objc_getAssociatedObject(self, @selector(mas_key));\n}\n\n- (void)setMas_key:(id)key {\n    objc_setAssociatedObject(self, @selector(mas_key), key, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n}\n\n#pragma mark - heirachy\n\n- (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view {\n    MAS_VIEW *closestCommonSuperview = nil;\n\n    MAS_VIEW *secondViewSuperview = view;\n    while (!closestCommonSuperview && secondViewSuperview) {\n        MAS_VIEW *firstViewSuperview = self;\n        while (!closestCommonSuperview && firstViewSuperview) {\n            if (secondViewSuperview == firstViewSuperview) {\n                closestCommonSuperview = secondViewSuperview;\n            }\n            firstViewSuperview = firstViewSuperview.superview;\n        }\n        secondViewSuperview = secondViewSuperview.superview;\n    }\n    return closestCommonSuperview;\n}\n\n@end\n"
  },
  {
    "path": "Masonry/View+MASShorthandAdditions.h",
    "content": "//\n//  UIView+MASShorthandAdditions.h\n//  Masonry\n//\n//  Created by Jonas Budelmann on 22/07/13.\n//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.\n//\n\n#import \"View+MASAdditions.h\"\n\n#ifdef MAS_SHORTHAND\n\n/**\n *\tShorthand view additions without the 'mas_' prefixes,\n *  only enabled if MAS_SHORTHAND is defined\n */\n@interface MAS_VIEW (MASShorthandAdditions)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *left;\n@property (nonatomic, strong, readonly) MASViewAttribute *top;\n@property (nonatomic, strong, readonly) MASViewAttribute *right;\n@property (nonatomic, strong, readonly) MASViewAttribute *bottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *leading;\n@property (nonatomic, strong, readonly) MASViewAttribute *trailing;\n@property (nonatomic, strong, readonly) MASViewAttribute *width;\n@property (nonatomic, strong, readonly) MASViewAttribute *height;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerX;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerY;\n@property (nonatomic, strong, readonly) MASViewAttribute *baseline;\n@property (nonatomic, strong, readonly) MASViewAttribute *(^attribute)(NSLayoutAttribute attr);\n\n#if TARGET_OS_IPHONE\n\n@property (nonatomic, strong, readonly) MASViewAttribute *leftMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *rightMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *topMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *bottomMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *leadingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *trailingMargin;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerXWithinMargins;\n@property (nonatomic, strong, readonly) MASViewAttribute *centerYWithinMargins;\n\n#endif\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block;\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block;\n\n@end\n\n#define MAS_ATTR_FORWARD(attr)  \\\n- (MASViewAttribute *)attr {    \\\n    return [self mas_##attr];   \\\n}\n\n@implementation MAS_VIEW (MASShorthandAdditions)\n\nMAS_ATTR_FORWARD(top);\nMAS_ATTR_FORWARD(left);\nMAS_ATTR_FORWARD(bottom);\nMAS_ATTR_FORWARD(right);\nMAS_ATTR_FORWARD(leading);\nMAS_ATTR_FORWARD(trailing);\nMAS_ATTR_FORWARD(width);\nMAS_ATTR_FORWARD(height);\nMAS_ATTR_FORWARD(centerX);\nMAS_ATTR_FORWARD(centerY);\nMAS_ATTR_FORWARD(baseline);\n\n#if TARGET_OS_IPHONE\n\nMAS_ATTR_FORWARD(leftMargin);\nMAS_ATTR_FORWARD(rightMargin);\nMAS_ATTR_FORWARD(topMargin);\nMAS_ATTR_FORWARD(bottomMargin);\nMAS_ATTR_FORWARD(leadingMargin);\nMAS_ATTR_FORWARD(trailingMargin);\nMAS_ATTR_FORWARD(centerXWithinMargins);\nMAS_ATTR_FORWARD(centerYWithinMargins);\n\n#endif\n\n- (MASViewAttribute *(^)(NSLayoutAttribute))attribute {\n    return [self mas_attribute];\n}\n\n- (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_makeConstraints:block];\n}\n\n- (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_updateConstraints:block];\n}\n\n- (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block {\n    return [self mas_remakeConstraints:block];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "Masonry/ViewController+MASAdditions.h",
    "content": "//\n//  UIViewController+MASAdditions.h\n//  Masonry\n//\n//  Created by Craig Siemens on 2015-06-23.\n//\n//\n\n#import \"MASUtilities.h\"\n#import \"MASConstraintMaker.h\"\n#import \"MASViewAttribute.h\"\n\n#ifdef MAS_VIEW_CONTROLLER\n\n@interface MAS_VIEW_CONTROLLER (MASAdditions)\n\n/**\n *\tfollowing properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute\n */\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop;\n@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom;\n\n\n@end\n\n#endif\n"
  },
  {
    "path": "Masonry/ViewController+MASAdditions.m",
    "content": "//\n//  UIViewController+MASAdditions.m\n//  Masonry\n//\n//  Created by Craig Siemens on 2015-06-23.\n//\n//\n\n#import \"ViewController+MASAdditions.h\"\n\n#ifdef MAS_VIEW_CONTROLLER\n\n@implementation MAS_VIEW_CONTROLLER (MASAdditions)\n\n- (MASViewAttribute *)mas_topLayoutGuide {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n- (MASViewAttribute *)mas_topLayoutGuideTop {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_topLayoutGuideBottom {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n\n- (MASViewAttribute *)mas_bottomLayoutGuide {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_bottomLayoutGuideTop {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];\n}\n- (MASViewAttribute *)mas_bottomLayoutGuideBottom {\n    return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom];\n}\n\n\n\n@end\n\n#endif\n"
  },
  {
    "path": "README.md",
    "content": "# deom-WYButton\n\n\n自定义按钮  按钮图片位置 上下左右 调整 比较实用  \n"
  },
  {
    "path": "deom/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n"
  },
  {
    "path": "deom/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n\n@interface AppDelegate ()\n\n@end\n\n@implementation AppDelegate\n\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Override point for customization after application launch.\n    return YES;\n}\n\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.\n}\n\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.\n}\n\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n\n@end\n"
  },
  {
    "path": "deom/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "deom/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11134\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11106\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Llm-lL-Icb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xb3-aO-Qok\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "deom/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11134\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11106\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" customModuleProvider=\"\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "deom/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "deom/ViewController.h",
    "content": "//\n//  ViewController.h\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"
  },
  {
    "path": "deom/ViewController.m",
    "content": "//\n//  ViewController.m\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import \"ViewController.h\"\n#import \"WYButton.h\"\n#import \"Masonry.h\"\n@interface ViewController ()\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    // Do any additional setup after loading the view, typically from a nib.\n    \n    \n    WYButton *button =[WYButton buttonWithType:UIButtonTypeCustom];\n \n    button.layoutStyle=2;\n    [button setTitle:@\"哈\" forState:UIControlStateNormal];\n    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];\n    [button setImage:[UIImage imageNamed:@\"微信\"] forState:UIControlStateNormal];\n    [self.view addSubview:button];\n    \n    [button mas_makeConstraints:^(MASConstraintMaker *make) {\n        make.centerX.equalTo(self.view.mas_centerX);\n        make.centerY.equalTo(self.view.mas_centerY);\n    }];\n    \n    \n    \n}\n\n\n- (void)didReceiveMemoryWarning {\n    [super didReceiveMemoryWarning];\n    // Dispose of any resources that can be recreated.\n}\n\n\n@end\n"
  },
  {
    "path": "deom/WYButton/WYButton.h",
    "content": "//\n//  WYButton.h\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\ntypedef NS_ENUM(NSUInteger, WYLayoutButtonStyle){\n    \n    WYLayoutButtonStyleLeftImageRightTitle,\n    WYLayoutButtonStyleLeftTitleRightImage,\n    WYLayoutButtonStyleUpImageDownTitle,\n    WYLayoutButtonStyleUpTitleDownImage\n \n};\n\n@interface WYButton : UIButton\n// 布局方式\n@property (nonatomic, assign) WYLayoutButtonStyle layoutStyle;\n// 图片和文字的间距，默认值8\n@property (nonatomic, assign) CGFloat midSpacing;\n \n    \n@end\n"
  },
  {
    "path": "deom/WYButton/WYButton.m",
    "content": "//\n//  WYButton.m\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import \"WYButton.h\"\n\n@implementation WYButton\n\n-(instancetype)initWithFrame:(CGRect)frame{\n    \n    if (self=[super initWithFrame:frame]) {\n        \n        self.midSpacing=8;\n    }\n    return self;\n}\n-(void)layoutSubviews{\n    \n    [super layoutSubviews];\n    [self.imageView sizeToFit];\n    [self.titleLabel sizeToFit];\n    \n    switch (self.layoutStyle) {\n        case WYLayoutButtonStyleLeftImageRightTitle:\n        [self layoutHorizontalWithLeftView:self.imageView rightView:self.titleLabel];\n        break;\n        case WYLayoutButtonStyleLeftTitleRightImage:\n        [self layoutHorizontalWithLeftView:self.titleLabel rightView:self.imageView];\n        break;\n        case WYLayoutButtonStyleUpImageDownTitle:\n        [self layoutVerticalWithUpView:self.imageView downView:self.titleLabel];\n        break;\n        case WYLayoutButtonStyleUpTitleDownImage:\n        [self layoutVerticalWithUpView:self.titleLabel downView:self.imageView];\n        break;\n        default:\n        break;\n    }\n}\n    \n- (void)layoutHorizontalWithLeftView:(UIView *)leftView rightView:(UIView *)rightView {\n        CGRect leftViewFrame = leftView.frame;\n        CGRect rightViewFrame = rightView.frame;\n        \n        CGFloat totalWidth = CGRectGetWidth(leftViewFrame) + self.midSpacing + CGRectGetWidth(rightViewFrame);\n        \n        leftViewFrame.origin.x = (CGRectGetWidth(self.frame) - totalWidth) / 2.0;\n        leftViewFrame.origin.y = (CGRectGetHeight(self.frame) - CGRectGetHeight(leftViewFrame)) / 2.0;\n        leftView.frame = leftViewFrame;\n        \n        rightViewFrame.origin.x = CGRectGetMaxX(leftViewFrame) + self.midSpacing;\n        rightViewFrame.origin.y = (CGRectGetHeight(self.frame) - CGRectGetHeight(rightViewFrame)) / 2.0;\n        rightView.frame = rightViewFrame;\n    }\n    \n- (void)layoutVerticalWithUpView:(UIView *)upView downView:(UIView *)downView {\n    CGRect upViewFrame = upView.frame;\n    CGRect downViewFrame = downView.frame;\n    \n    CGFloat totalHeight = CGRectGetHeight(upViewFrame) + self.midSpacing + CGRectGetHeight(downViewFrame);\n    \n    upViewFrame.origin.y = (CGRectGetHeight(self.frame) - totalHeight) / 2.0;\n    upViewFrame.origin.x = (CGRectGetWidth(self.frame) - CGRectGetWidth(upViewFrame)) / 2.0;\n    upView.frame = upViewFrame;\n    \n    downViewFrame.origin.y = CGRectGetMaxY(upViewFrame) + self.midSpacing;\n    downViewFrame.origin.x = (CGRectGetWidth(self.frame) - CGRectGetWidth(downViewFrame)) / 2.0;\n    downView.frame = downViewFrame;\n}\n    \n- (void)setImage:(UIImage *)image forState:(UIControlState)state {\n    [super setImage:image forState:state];\n    [self setNeedsLayout];\n}\n    \n- (void)setTitle:(NSString *)title forState:(UIControlState)state {\n    [super setTitle:title forState:state];\n    [self setNeedsLayout];\n}\n  \n@end\n"
  },
  {
    "path": "deom/main.m",
    "content": "//\n//  main.m\n//  deom\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "deom.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t898CF8C91DC483C1009B9AF1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF8C81DC483C1009B9AF1 /* main.m */; };\n\t\t898CF8CC1DC483C1009B9AF1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF8CB1DC483C1009B9AF1 /* AppDelegate.m */; };\n\t\t898CF8CF1DC483C1009B9AF1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF8CE1DC483C1009B9AF1 /* ViewController.m */; };\n\t\t898CF8D21DC483C1009B9AF1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 898CF8D01DC483C1009B9AF1 /* Main.storyboard */; };\n\t\t898CF8D41DC483C1009B9AF1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 898CF8D31DC483C1009B9AF1 /* Assets.xcassets */; };\n\t\t898CF8D71DC483C1009B9AF1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 898CF8D51DC483C1009B9AF1 /* LaunchScreen.storyboard */; };\n\t\t898CF8E21DC483C1009B9AF1 /* deomTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF8E11DC483C1009B9AF1 /* deomTests.m */; };\n\t\t898CF8ED1DC483C1009B9AF1 /* deomUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF8EC1DC483C1009B9AF1 /* deomUITests.m */; };\n\t\t898CF8FE1DC48AE9009B9AF1 /* Mentor_Huiwen.png in Resources */ = {isa = PBXBuildFile; fileRef = 898CF8FD1DC48AE9009B9AF1 /* Mentor_Huiwen.png */; };\n\t\t898CF91E1DC48CAB009B9AF1 /* CZOnlineNSStringEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9031DC48CAB009B9AF1 /* CZOnlineNSStringEditor.m */; };\n\t\t898CF91F1DC48CAB009B9AF1 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 898CF9041DC48CAB009B9AF1 /* Info.plist */; };\n\t\t898CF9201DC48CAB009B9AF1 /* MASCompositeConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9061DC48CAB009B9AF1 /* MASCompositeConstraint.m */; };\n\t\t898CF9211DC48CAB009B9AF1 /* MASConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9091DC48CAB009B9AF1 /* MASConstraint.m */; };\n\t\t898CF9221DC48CAB009B9AF1 /* MASConstraintMaker.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF90B1DC48CAB009B9AF1 /* MASConstraintMaker.m */; };\n\t\t898CF9231DC48CAB009B9AF1 /* MASLayoutConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF90D1DC48CAB009B9AF1 /* MASLayoutConstraint.m */; };\n\t\t898CF9241DC48CAB009B9AF1 /* MASViewAttribute.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9111DC48CAB009B9AF1 /* MASViewAttribute.m */; };\n\t\t898CF9251DC48CAB009B9AF1 /* MASViewConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9131DC48CAB009B9AF1 /* MASViewConstraint.m */; };\n\t\t898CF9261DC48CAB009B9AF1 /* NSArray+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9151DC48CAB009B9AF1 /* NSArray+MASAdditions.m */; };\n\t\t898CF9271DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9181DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.m */; };\n\t\t898CF9281DC48CAB009B9AF1 /* View+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF91A1DC48CAB009B9AF1 /* View+MASAdditions.m */; };\n\t\t898CF9291DC48CAB009B9AF1 /* ViewController+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF91D1DC48CAB009B9AF1 /* ViewController+MASAdditions.m */; };\n\t\t898CF92C1DC48E40009B9AF1 /* 微信@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 898CF92A1DC48E40009B9AF1 /* 微信@2x.png */; };\n\t\t898CF92D1DC48E40009B9AF1 /* 微信@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 898CF92B1DC48E40009B9AF1 /* 微信@3x.png */; };\n\t\t898CF9311DC48F5E009B9AF1 /* WYButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 898CF9301DC48F5E009B9AF1 /* WYButton.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t898CF8DE1DC483C1009B9AF1 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 898CF8BC1DC483C1009B9AF1 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 898CF8C31DC483C1009B9AF1;\n\t\t\tremoteInfo = deom;\n\t\t};\n\t\t898CF8E91DC483C1009B9AF1 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 898CF8BC1DC483C1009B9AF1 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 898CF8C31DC483C1009B9AF1;\n\t\t\tremoteInfo = deom;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t898CF8C41DC483C1009B9AF1 /* deom.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = deom.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t898CF8C81DC483C1009B9AF1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t898CF8CA1DC483C1009B9AF1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t898CF8CB1DC483C1009B9AF1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t898CF8CD1DC483C1009B9AF1 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = \"<group>\"; };\n\t\t898CF8CE1DC483C1009B9AF1 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = \"<group>\"; };\n\t\t898CF8D11DC483C1009B9AF1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t898CF8D31DC483C1009B9AF1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t898CF8D61DC483C1009B9AF1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t898CF8D81DC483C1009B9AF1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t898CF8DD1DC483C1009B9AF1 /* deomTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = deomTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t898CF8E11DC483C1009B9AF1 /* deomTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = deomTests.m; sourceTree = \"<group>\"; };\n\t\t898CF8E31DC483C1009B9AF1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t898CF8E81DC483C1009B9AF1 /* deomUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = deomUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t898CF8EC1DC483C1009B9AF1 /* deomUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = deomUITests.m; sourceTree = \"<group>\"; };\n\t\t898CF8EE1DC483C1009B9AF1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t898CF8FD1DC48AE9009B9AF1 /* Mentor_Huiwen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Mentor_Huiwen.png; sourceTree = \"<group>\"; };\n\t\t898CF9021DC48CAB009B9AF1 /* CZOnlineNSStringEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CZOnlineNSStringEditor.h; sourceTree = \"<group>\"; };\n\t\t898CF9031DC48CAB009B9AF1 /* CZOnlineNSStringEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CZOnlineNSStringEditor.m; sourceTree = \"<group>\"; };\n\t\t898CF9041DC48CAB009B9AF1 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t898CF9051DC48CAB009B9AF1 /* MASCompositeConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASCompositeConstraint.h; sourceTree = \"<group>\"; };\n\t\t898CF9061DC48CAB009B9AF1 /* MASCompositeConstraint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASCompositeConstraint.m; sourceTree = \"<group>\"; };\n\t\t898CF9071DC48CAB009B9AF1 /* MASConstraint+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"MASConstraint+Private.h\"; sourceTree = \"<group>\"; };\n\t\t898CF9081DC48CAB009B9AF1 /* MASConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASConstraint.h; sourceTree = \"<group>\"; };\n\t\t898CF9091DC48CAB009B9AF1 /* MASConstraint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASConstraint.m; sourceTree = \"<group>\"; };\n\t\t898CF90A1DC48CAB009B9AF1 /* MASConstraintMaker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASConstraintMaker.h; sourceTree = \"<group>\"; };\n\t\t898CF90B1DC48CAB009B9AF1 /* MASConstraintMaker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASConstraintMaker.m; sourceTree = \"<group>\"; };\n\t\t898CF90C1DC48CAB009B9AF1 /* MASLayoutConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASLayoutConstraint.h; sourceTree = \"<group>\"; };\n\t\t898CF90D1DC48CAB009B9AF1 /* MASLayoutConstraint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASLayoutConstraint.m; sourceTree = \"<group>\"; };\n\t\t898CF90E1DC48CAB009B9AF1 /* Masonry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Masonry.h; sourceTree = \"<group>\"; };\n\t\t898CF90F1DC48CAB009B9AF1 /* MASUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASUtilities.h; sourceTree = \"<group>\"; };\n\t\t898CF9101DC48CAB009B9AF1 /* MASViewAttribute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASViewAttribute.h; sourceTree = \"<group>\"; };\n\t\t898CF9111DC48CAB009B9AF1 /* MASViewAttribute.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASViewAttribute.m; sourceTree = \"<group>\"; };\n\t\t898CF9121DC48CAB009B9AF1 /* MASViewConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MASViewConstraint.h; sourceTree = \"<group>\"; };\n\t\t898CF9131DC48CAB009B9AF1 /* MASViewConstraint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MASViewConstraint.m; sourceTree = \"<group>\"; };\n\t\t898CF9141DC48CAB009B9AF1 /* NSArray+MASAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"NSArray+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF9151DC48CAB009B9AF1 /* NSArray+MASAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"NSArray+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t898CF9161DC48CAB009B9AF1 /* NSArray+MASShorthandAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"NSArray+MASShorthandAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF9171DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"NSLayoutConstraint+MASDebugAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF9181DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"NSLayoutConstraint+MASDebugAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t898CF9191DC48CAB009B9AF1 /* View+MASAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"View+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF91A1DC48CAB009B9AF1 /* View+MASAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"View+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t898CF91B1DC48CAB009B9AF1 /* View+MASShorthandAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"View+MASShorthandAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF91C1DC48CAB009B9AF1 /* ViewController+MASAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"ViewController+MASAdditions.h\"; sourceTree = \"<group>\"; };\n\t\t898CF91D1DC48CAB009B9AF1 /* ViewController+MASAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"ViewController+MASAdditions.m\"; sourceTree = \"<group>\"; };\n\t\t898CF92A1DC48E40009B9AF1 /* 微信@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"微信@2x.png\"; sourceTree = \"<group>\"; };\n\t\t898CF92B1DC48E40009B9AF1 /* 微信@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"微信@3x.png\"; sourceTree = \"<group>\"; };\n\t\t898CF92F1DC48F5E009B9AF1 /* WYButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WYButton.h; sourceTree = \"<group>\"; };\n\t\t898CF9301DC48F5E009B9AF1 /* WYButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WYButton.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t898CF8C11DC483C1009B9AF1 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8DA1DC483C1009B9AF1 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8E51DC483C1009B9AF1 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t898CF8BB1DC483C1009B9AF1 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF9011DC48CAB009B9AF1 /* Masonry */,\n\t\t\t\t898CF8C61DC483C1009B9AF1 /* deom */,\n\t\t\t\t898CF8E01DC483C1009B9AF1 /* deomTests */,\n\t\t\t\t898CF8EB1DC483C1009B9AF1 /* deomUITests */,\n\t\t\t\t898CF8C51DC483C1009B9AF1 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8C51DC483C1009B9AF1 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8C41DC483C1009B9AF1 /* deom.app */,\n\t\t\t\t898CF8DD1DC483C1009B9AF1 /* deomTests.xctest */,\n\t\t\t\t898CF8E81DC483C1009B9AF1 /* deomUITests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8C61DC483C1009B9AF1 /* deom */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF92A1DC48E40009B9AF1 /* 微信@2x.png */,\n\t\t\t\t898CF92B1DC48E40009B9AF1 /* 微信@3x.png */,\n\t\t\t\t898CF8FD1DC48AE9009B9AF1 /* Mentor_Huiwen.png */,\n\t\t\t\t898CF8CA1DC483C1009B9AF1 /* AppDelegate.h */,\n\t\t\t\t898CF8CB1DC483C1009B9AF1 /* AppDelegate.m */,\n\t\t\t\t898CF8CD1DC483C1009B9AF1 /* ViewController.h */,\n\t\t\t\t898CF8CE1DC483C1009B9AF1 /* ViewController.m */,\n\t\t\t\t898CF92E1DC48F5E009B9AF1 /* WYButton */,\n\t\t\t\t898CF8D01DC483C1009B9AF1 /* Main.storyboard */,\n\t\t\t\t898CF8D31DC483C1009B9AF1 /* Assets.xcassets */,\n\t\t\t\t898CF8D51DC483C1009B9AF1 /* LaunchScreen.storyboard */,\n\t\t\t\t898CF8D81DC483C1009B9AF1 /* Info.plist */,\n\t\t\t\t898CF8C71DC483C1009B9AF1 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = deom;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8C71DC483C1009B9AF1 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8C81DC483C1009B9AF1 /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8E01DC483C1009B9AF1 /* deomTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8E11DC483C1009B9AF1 /* deomTests.m */,\n\t\t\t\t898CF8E31DC483C1009B9AF1 /* Info.plist */,\n\t\t\t);\n\t\t\tpath = deomTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8EB1DC483C1009B9AF1 /* deomUITests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8EC1DC483C1009B9AF1 /* deomUITests.m */,\n\t\t\t\t898CF8EE1DC483C1009B9AF1 /* Info.plist */,\n\t\t\t);\n\t\t\tpath = deomUITests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF9011DC48CAB009B9AF1 /* Masonry */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF9021DC48CAB009B9AF1 /* CZOnlineNSStringEditor.h */,\n\t\t\t\t898CF9031DC48CAB009B9AF1 /* CZOnlineNSStringEditor.m */,\n\t\t\t\t898CF9041DC48CAB009B9AF1 /* Info.plist */,\n\t\t\t\t898CF9051DC48CAB009B9AF1 /* MASCompositeConstraint.h */,\n\t\t\t\t898CF9061DC48CAB009B9AF1 /* MASCompositeConstraint.m */,\n\t\t\t\t898CF9071DC48CAB009B9AF1 /* MASConstraint+Private.h */,\n\t\t\t\t898CF9081DC48CAB009B9AF1 /* MASConstraint.h */,\n\t\t\t\t898CF9091DC48CAB009B9AF1 /* MASConstraint.m */,\n\t\t\t\t898CF90A1DC48CAB009B9AF1 /* MASConstraintMaker.h */,\n\t\t\t\t898CF90B1DC48CAB009B9AF1 /* MASConstraintMaker.m */,\n\t\t\t\t898CF90C1DC48CAB009B9AF1 /* MASLayoutConstraint.h */,\n\t\t\t\t898CF90D1DC48CAB009B9AF1 /* MASLayoutConstraint.m */,\n\t\t\t\t898CF90E1DC48CAB009B9AF1 /* Masonry.h */,\n\t\t\t\t898CF90F1DC48CAB009B9AF1 /* MASUtilities.h */,\n\t\t\t\t898CF9101DC48CAB009B9AF1 /* MASViewAttribute.h */,\n\t\t\t\t898CF9111DC48CAB009B9AF1 /* MASViewAttribute.m */,\n\t\t\t\t898CF9121DC48CAB009B9AF1 /* MASViewConstraint.h */,\n\t\t\t\t898CF9131DC48CAB009B9AF1 /* MASViewConstraint.m */,\n\t\t\t\t898CF9141DC48CAB009B9AF1 /* NSArray+MASAdditions.h */,\n\t\t\t\t898CF9151DC48CAB009B9AF1 /* NSArray+MASAdditions.m */,\n\t\t\t\t898CF9161DC48CAB009B9AF1 /* NSArray+MASShorthandAdditions.h */,\n\t\t\t\t898CF9171DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.h */,\n\t\t\t\t898CF9181DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.m */,\n\t\t\t\t898CF9191DC48CAB009B9AF1 /* View+MASAdditions.h */,\n\t\t\t\t898CF91A1DC48CAB009B9AF1 /* View+MASAdditions.m */,\n\t\t\t\t898CF91B1DC48CAB009B9AF1 /* View+MASShorthandAdditions.h */,\n\t\t\t\t898CF91C1DC48CAB009B9AF1 /* ViewController+MASAdditions.h */,\n\t\t\t\t898CF91D1DC48CAB009B9AF1 /* ViewController+MASAdditions.m */,\n\t\t\t);\n\t\t\tpath = Masonry;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF92E1DC48F5E009B9AF1 /* WYButton */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF92F1DC48F5E009B9AF1 /* WYButton.h */,\n\t\t\t\t898CF9301DC48F5E009B9AF1 /* WYButton.m */,\n\t\t\t);\n\t\t\tpath = WYButton;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t898CF8C31DC483C1009B9AF1 /* deom */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 898CF8F11DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deom\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t898CF8C01DC483C1009B9AF1 /* Sources */,\n\t\t\t\t898CF8C11DC483C1009B9AF1 /* Frameworks */,\n\t\t\t\t898CF8C21DC483C1009B9AF1 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = deom;\n\t\t\tproductName = deom;\n\t\t\tproductReference = 898CF8C41DC483C1009B9AF1 /* deom.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t898CF8DC1DC483C1009B9AF1 /* deomTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 898CF8F41DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deomTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t898CF8D91DC483C1009B9AF1 /* Sources */,\n\t\t\t\t898CF8DA1DC483C1009B9AF1 /* Frameworks */,\n\t\t\t\t898CF8DB1DC483C1009B9AF1 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t898CF8DF1DC483C1009B9AF1 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = deomTests;\n\t\t\tproductName = deomTests;\n\t\t\tproductReference = 898CF8DD1DC483C1009B9AF1 /* deomTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n\t\t898CF8E71DC483C1009B9AF1 /* deomUITests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 898CF8F71DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deomUITests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t898CF8E41DC483C1009B9AF1 /* Sources */,\n\t\t\t\t898CF8E51DC483C1009B9AF1 /* Frameworks */,\n\t\t\t\t898CF8E61DC483C1009B9AF1 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t898CF8EA1DC483C1009B9AF1 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = deomUITests;\n\t\t\tproductName = deomUITests;\n\t\t\tproductReference = 898CF8E81DC483C1009B9AF1 /* deomUITests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.ui-testing\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t898CF8BC1DC483C1009B9AF1 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0800;\n\t\t\t\tORGANIZATIONNAME = \"www.hopechina.cc 中和黄埔\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t898CF8C31DC483C1009B9AF1 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 8.0;\n\t\t\t\t\t\tDevelopmentTeam = W743Y9P3MJ;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t\t898CF8DC1DC483C1009B9AF1 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 8.0;\n\t\t\t\t\t\tDevelopmentTeam = 5K7Q2CX7N7;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t\tTestTargetID = 898CF8C31DC483C1009B9AF1;\n\t\t\t\t\t};\n\t\t\t\t\t898CF8E71DC483C1009B9AF1 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 8.0;\n\t\t\t\t\t\tDevelopmentTeam = 5K7Q2CX7N7;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t\tTestTargetID = 898CF8C31DC483C1009B9AF1;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 898CF8BF1DC483C1009B9AF1 /* Build configuration list for PBXProject \"deom\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 898CF8BB1DC483C1009B9AF1;\n\t\t\tproductRefGroup = 898CF8C51DC483C1009B9AF1 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t898CF8C31DC483C1009B9AF1 /* deom */,\n\t\t\t\t898CF8DC1DC483C1009B9AF1 /* deomTests */,\n\t\t\t\t898CF8E71DC483C1009B9AF1 /* deomUITests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t898CF8C21DC483C1009B9AF1 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t898CF92D1DC48E40009B9AF1 /* 微信@3x.png in Resources */,\n\t\t\t\t898CF8FE1DC48AE9009B9AF1 /* Mentor_Huiwen.png in Resources */,\n\t\t\t\t898CF8D71DC483C1009B9AF1 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t898CF8D41DC483C1009B9AF1 /* Assets.xcassets in Resources */,\n\t\t\t\t898CF92C1DC48E40009B9AF1 /* 微信@2x.png in Resources */,\n\t\t\t\t898CF91F1DC48CAB009B9AF1 /* Info.plist in Resources */,\n\t\t\t\t898CF8D21DC483C1009B9AF1 /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8DB1DC483C1009B9AF1 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8E61DC483C1009B9AF1 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t898CF8C01DC483C1009B9AF1 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t898CF9311DC48F5E009B9AF1 /* WYButton.m in Sources */,\n\t\t\t\t898CF9271DC48CAB009B9AF1 /* NSLayoutConstraint+MASDebugAdditions.m in Sources */,\n\t\t\t\t898CF91E1DC48CAB009B9AF1 /* CZOnlineNSStringEditor.m in Sources */,\n\t\t\t\t898CF9251DC48CAB009B9AF1 /* MASViewConstraint.m in Sources */,\n\t\t\t\t898CF8CF1DC483C1009B9AF1 /* ViewController.m in Sources */,\n\t\t\t\t898CF8CC1DC483C1009B9AF1 /* AppDelegate.m in Sources */,\n\t\t\t\t898CF9281DC48CAB009B9AF1 /* View+MASAdditions.m in Sources */,\n\t\t\t\t898CF9201DC48CAB009B9AF1 /* MASCompositeConstraint.m in Sources */,\n\t\t\t\t898CF9241DC48CAB009B9AF1 /* MASViewAttribute.m in Sources */,\n\t\t\t\t898CF9221DC48CAB009B9AF1 /* MASConstraintMaker.m in Sources */,\n\t\t\t\t898CF9261DC48CAB009B9AF1 /* NSArray+MASAdditions.m in Sources */,\n\t\t\t\t898CF9291DC48CAB009B9AF1 /* ViewController+MASAdditions.m in Sources */,\n\t\t\t\t898CF9211DC48CAB009B9AF1 /* MASConstraint.m in Sources */,\n\t\t\t\t898CF9231DC48CAB009B9AF1 /* MASLayoutConstraint.m in Sources */,\n\t\t\t\t898CF8C91DC483C1009B9AF1 /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8D91DC483C1009B9AF1 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t898CF8E21DC483C1009B9AF1 /* deomTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t898CF8E41DC483C1009B9AF1 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t898CF8ED1DC483C1009B9AF1 /* deomUITests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t898CF8DF1DC483C1009B9AF1 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 898CF8C31DC483C1009B9AF1 /* deom */;\n\t\t\ttargetProxy = 898CF8DE1DC483C1009B9AF1 /* PBXContainerItemProxy */;\n\t\t};\n\t\t898CF8EA1DC483C1009B9AF1 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 898CF8C31DC483C1009B9AF1 /* deom */;\n\t\t\ttargetProxy = 898CF8E91DC483C1009B9AF1 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t898CF8D01DC483C1009B9AF1 /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8D11DC483C1009B9AF1 /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t898CF8D51DC483C1009B9AF1 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t898CF8D61DC483C1009B9AF1 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t898CF8EF1DC483C1009B9AF1 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVES = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t898CF8F01DC483C1009B9AF1 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVES = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t898CF8F21DC483C1009B9AF1 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tDEVELOPMENT_TEAM = W743Y9P3MJ;\n\t\t\t\tINFOPLIST_FILE = deom/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deom;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t898CF8F31DC483C1009B9AF1 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tDEVELOPMENT_TEAM = W743Y9P3MJ;\n\t\t\t\tINFOPLIST_FILE = deom/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deom;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t898CF8F51DC483C1009B9AF1 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tDEVELOPMENT_TEAM = 5K7Q2CX7N7;\n\t\t\t\tINFOPLIST_FILE = deomTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deomTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/deom.app/deom\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t898CF8F61DC483C1009B9AF1 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tDEVELOPMENT_TEAM = 5K7Q2CX7N7;\n\t\t\t\tINFOPLIST_FILE = deomTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deomTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/deom.app/deom\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t898CF8F81DC483C1009B9AF1 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEVELOPMENT_TEAM = 5K7Q2CX7N7;\n\t\t\t\tINFOPLIST_FILE = deomUITests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deomUITests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_TARGET_NAME = deom;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t898CF8F91DC483C1009B9AF1 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEVELOPMENT_TEAM = 5K7Q2CX7N7;\n\t\t\t\tINFOPLIST_FILE = deomUITests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = wangyue.deomUITests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_TARGET_NAME = deom;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t898CF8BF1DC483C1009B9AF1 /* Build configuration list for PBXProject \"deom\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t898CF8EF1DC483C1009B9AF1 /* Debug */,\n\t\t\t\t898CF8F01DC483C1009B9AF1 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t898CF8F11DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deom\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t898CF8F21DC483C1009B9AF1 /* Debug */,\n\t\t\t\t898CF8F31DC483C1009B9AF1 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t898CF8F41DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deomTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t898CF8F51DC483C1009B9AF1 /* Debug */,\n\t\t\t\t898CF8F61DC483C1009B9AF1 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t898CF8F71DC483C1009B9AF1 /* Build configuration list for PBXNativeTarget \"deomUITests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t898CF8F81DC483C1009B9AF1 /* Debug */,\n\t\t\t\t898CF8F91DC483C1009B9AF1 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 898CF8BC1DC483C1009B9AF1 /* Project object */;\n}\n"
  },
  {
    "path": "deom.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:deom.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "deom.xcodeproj/xcuserdata/wangyue.xcuserdatad/xcschemes/deom.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0800\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"898CF8C31DC483C1009B9AF1\"\n               BuildableName = \"deom.app\"\n               BlueprintName = \"deom\"\n               ReferencedContainer = \"container:deom.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"898CF8DC1DC483C1009B9AF1\"\n               BuildableName = \"deomTests.xctest\"\n               BlueprintName = \"deomTests\"\n               ReferencedContainer = \"container:deom.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"898CF8E71DC483C1009B9AF1\"\n               BuildableName = \"deomUITests.xctest\"\n               BlueprintName = \"deomUITests\"\n               ReferencedContainer = \"container:deom.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"898CF8C31DC483C1009B9AF1\"\n            BuildableName = \"deom.app\"\n            BlueprintName = \"deom\"\n            ReferencedContainer = \"container:deom.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"898CF8C31DC483C1009B9AF1\"\n            BuildableName = \"deom.app\"\n            BlueprintName = \"deom\"\n            ReferencedContainer = \"container:deom.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"898CF8C31DC483C1009B9AF1\"\n            BuildableName = \"deom.app\"\n            BlueprintName = \"deom\"\n            ReferencedContainer = \"container:deom.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "deom.xcodeproj/xcuserdata/wangyue.xcuserdatad/xcschemes/xcschememanagement.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>SchemeUserState</key>\n\t<dict>\n\t\t<key>deom.xcscheme</key>\n\t\t<dict>\n\t\t\t<key>orderHint</key>\n\t\t\t<integer>0</integer>\n\t\t</dict>\n\t</dict>\n\t<key>SuppressBuildableAutocreation</key>\n\t<dict>\n\t\t<key>898CF8C31DC483C1009B9AF1</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t\t<key>898CF8DC1DC483C1009B9AF1</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t\t<key>898CF8E71DC483C1009B9AF1</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "deomTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "deomTests/deomTests.m",
    "content": "//\n//  deomTests.m\n//  deomTests\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface deomTests : XCTestCase\n\n@end\n\n@implementation deomTests\n\n- (void)setUp {\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // This is an example of a functional test case.\n    // Use XCTAssert and related functions to verify your tests produce the correct results.\n}\n\n- (void)testPerformanceExample {\n    // This is an example of a performance test case.\n    [self measureBlock:^{\n        // Put the code you want to measure the time of here.\n    }];\n}\n\n@end\n"
  },
  {
    "path": "deomUITests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "deomUITests/deomUITests.m",
    "content": "//\n//  deomUITests.m\n//  deomUITests\n//\n//  Created by wangyue on 16/10/29.\n//  Copyright © 2016年 www.hopechina.cc 中和黄埔. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface deomUITests : XCTestCase\n\n@end\n\n@implementation deomUITests\n\n- (void)setUp {\n    [super setUp];\n    \n    // Put setup code here. This method is called before the invocation of each test method in the class.\n    \n    // In UI tests it is usually best to stop immediately when a failure occurs.\n    self.continueAfterFailure = NO;\n    // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.\n    [[[XCUIApplication alloc] init] launch];\n    \n    // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // Use recording to get started writing UI tests.\n    // Use XCTAssert and related functions to verify your tests produce the correct results.\n}\n\n@end\n"
  }
]