Authored by ernesto

Use MAS_View instead of UIView in NSArray+MASAdditions (fixes compilation in OSX)

... ... @@ -13,8 +13,8 @@
- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block {
NSMutableArray *constraints = [NSMutableArray array];
for (UIView *view in self) {
NSAssert([view isKindOfClass:[UIView class]], @"All objects in the array must be views");
for (MAS_VIEW *view in self) {
NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views");
[constraints addObjectsFromArray:[view mas_makeConstraints:block]];
}
return constraints;
... ... @@ -22,8 +22,8 @@
- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block {
NSMutableArray *constraints = [NSMutableArray array];
for (UIView *view in self) {
NSAssert([view isKindOfClass:[UIView class]], @"All objects in the array must be views");
for (MAS_VIEW *view in self) {
NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views");
[constraints addObjectsFromArray:[view mas_updateConstraints:block]];
}
return constraints;
... ...