瀏覽代碼

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

ernesto 11 年之前
父節點
當前提交
537f30c4d6
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;