Sfoglia il codice sorgente

修复 BackNormalFooter 从刷新状态被设置为闲置状态动画结束后的过滤判断条件

Eric Wu 6 anni fa
parent
commit
8c5492917c

+ 1 - 1
MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m

@@ -91,7 +91,7 @@ - (void)setState:(MJRefreshState)state
                 self.loadingView.alpha = 0.0;
                 self.loadingView.alpha = 0.0;
             } completion:^(BOOL finished) {
             } completion:^(BOOL finished) {
                 // 防止动画结束后,状态已经不是MJRefreshStateIdle
                 // 防止动画结束后,状态已经不是MJRefreshStateIdle
-                if (state != MJRefreshStateIdle) return;
+                if (self.state != MJRefreshStateIdle) return;
                 
                 
                 self.loadingView.alpha = 1.0;
                 self.loadingView.alpha = 1.0;
                 [self.loadingView stopAnimating];
                 [self.loadingView stopAnimating];