...
|
...
|
@@ -81,7 +81,7 @@ |
|
|
#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)
|
|
|
#if TARGET_OS_IPHONE || TARGET_OS_TV
|
|
|
| MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin
|
|
|
| MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins
|
|
|
| MASAttributeCenterYWithinMargins
|
...
|
...
|
@@ -111,7 +111,7 @@ |
|
|
|
|
|
#endif
|
|
|
|
|
|
#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
|
|
|
#if TARGET_OS_IPHONE || TARGET_OS_TV
|
|
|
|
|
|
if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin];
|
|
|
if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin];
|
...
|
...
|
@@ -205,7 +205,7 @@ |
|
|
#endif
|
|
|
|
|
|
|
|
|
#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
|
|
|
#if TARGET_OS_IPHONE || TARGET_OS_TV
|
|
|
|
|
|
- (MASConstraint *)leftMargin {
|
|
|
return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];
|
...
|
...
|
|