old mode 100644
new mode 100755
| | |
| | | // |
| | | // MASConstraintBuilder.m |
| | | // MASConstraintMaker.m |
| | | // Masonry |
| | | // |
| | | // Created by Jonas Budelmann on 20/07/13. |
| | |
| | | __unused MASAttribute anyAttribute = (MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading |
| | | | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX |
| | | | MASAttributeCenterY | MASAttributeBaseline |
| | | #if TARGET_OS_IPHONE |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) |
| | | | MASAttributeFirstBaseline | MASAttributeLastBaseline |
| | | #endif |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) |
| | | | MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin |
| | | | MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins |
| | | | MASAttributeCenterYWithinMargins |
| | |
| | | if (attrs & MASAttributeCenterY) [attributes addObject:self.view.mas_centerY]; |
| | | if (attrs & MASAttributeBaseline) [attributes addObject:self.view.mas_baseline]; |
| | | |
| | | #if TARGET_OS_IPHONE |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) |
| | | |
| | | if (attrs & MASAttributeFirstBaseline) [attributes addObject:self.view.mas_firstBaseline]; |
| | | if (attrs & MASAttributeLastBaseline) [attributes addObject:self.view.mas_lastBaseline]; |
| | | |
| | | #endif |
| | | |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) |
| | | |
| | | if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin]; |
| | | if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin]; |
| | |
| | | }; |
| | | } |
| | | |
| | | #if TARGET_OS_IPHONE |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) |
| | | |
| | | - (MASConstraint *)firstBaseline { |
| | | return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline]; |
| | | } |
| | | |
| | | - (MASConstraint *)lastBaseline { |
| | | return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline]; |
| | | } |
| | | |
| | | #endif |
| | | |
| | | |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) |
| | | |
| | | - (MASConstraint *)leftMargin { |
| | | return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin]; |