Przeglądaj źródła

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

ernesto 11 lat temu
rodzic
commit
537f30c4d6
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      Masonry/NSArray+MASAdditions.m

+ 4 - 4
Masonry/NSArray+MASAdditions.m

@@ -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;