Browse Source

修正 __weak 弱指针低版本报错的问题

__weak typeof(self) -> __weak __typeof(self)
godera 10 years ago
parent
commit
ebe2a16c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.m

+ 1 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooter.m

@@ -181,7 +181,7 @@ - (void)buttonClick
 #pragma mark - 公共方法
 - (void)setHidden:(BOOL)hidden
 {
-    __weak typeof(self) weakSelf = self;
+    __weak __typeof(self) weakSelf = self;
     BOOL lastHidden = weakSelf.isHidden;
     CGFloat h = weakSelf.mj_h;
     [weakSelf.willExecuteBlocks addObject:^{