Pārlūkot izejas kodu

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

__weak typeof(self) -> __weak __typeof(self)
godera 10 gadi atpakaļ
vecāks
revīzija
ebe2a16c29

+ 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:^{