old mode 100644
new mode 100755
| | |
| | | @(NSLayoutAttributeCenterY) : @"centerY", |
| | | @(NSLayoutAttributeBaseline) : @"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) |
| | | @(NSLayoutAttributeFirstBaseline) : @"firstBaseline", |
| | | @(NSLayoutAttributeLastBaseline) : @"lastBaseline", |
| | | #endif |
| | | |
| | | #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) |
| | | @(NSLayoutAttributeLeftMargin) : @"leftMargin", |
| | | @(NSLayoutAttributeRightMargin) : @"rightMargin", |
| | | @(NSLayoutAttributeTopMargin) : @"topMargin", |
| | |
| | | static dispatch_once_t once; |
| | | static NSDictionary *descriptionMap; |
| | | dispatch_once(&once, ^{ |
| | | #if TARGET_OS_IPHONE |
| | | #if TARGET_OS_IPHONE || TARGET_OS_TV |
| | | descriptionMap = @{ |
| | | @(MASLayoutPriorityDefaultHigh) : @"high", |
| | | @(MASLayoutPriorityDefaultLow) : @"low", |
| | |
| | | |
| | | [description appendFormat:@" %@", [self.class descriptionForObject:self.firstItem]]; |
| | | if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) { |
| | | [description appendFormat:@".%@", [self.class.layoutAttributeDescriptionsByValue objectForKey:@(self.firstAttribute)]]; |
| | | [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.firstAttribute)]]; |
| | | } |
| | | |
| | | [description appendFormat:@" %@", [self.class.layoutRelationDescriptionsByValue objectForKey:@(self.relation)]]; |
| | | [description appendFormat:@" %@", self.class.layoutRelationDescriptionsByValue[@(self.relation)]]; |
| | | |
| | | if (self.secondItem) { |
| | | [description appendFormat:@" %@", [self.class descriptionForObject:self.secondItem]]; |
| | | } |
| | | if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) { |
| | | [description appendFormat:@".%@", [self.class.layoutAttributeDescriptionsByValue objectForKey:@(self.secondAttribute)]]; |
| | | [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.secondAttribute)]]; |
| | | } |
| | | |
| | | if (self.multiplier != 1) { |
| | |
| | | } |
| | | |
| | | if (self.priority != MASLayoutPriorityRequired) { |
| | | [description appendFormat:@" ^%@", [self.class.layoutPriorityDescriptionsByValue objectForKey:@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]]; |
| | | [description appendFormat:@" ^%@", self.class.layoutPriorityDescriptionsByValue[@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]]; |
| | | } |
| | | |
| | | [description appendString:@">"]; |