Procházet zdrojové kódy

replace deprecated method

Frank před 6 roky
rodič
revize
5e09f9ce5d

+ 2 - 2
MJRefresh/Base/MJRefreshAutoFooter.m

@@ -160,8 +160,8 @@ - (void)setState:(MJRefreshState)state
                 [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{
                     self.scrollView.contentOffset = offset;
                     
-                    if (self.endRefreshingAnimateCompletionBlock) {
-                        self.endRefreshingAnimateCompletionBlock();
+                    if (self.endRefreshingAnimationBeginAction) {
+                        self.endRefreshingAnimationBeginAction();
                     }
                 } completion:^(BOOL finished) {
                     if (self.endRefreshingCompletionBlock) {

+ 1 - 1
MJRefresh/Base/MJRefreshComponent.h

@@ -68,7 +68,7 @@ typedef void (^MJRefreshComponentAction)(void);
 /** 开始刷新后的回调(进入刷新状态后的回调) */
 @property (copy, nonatomic, nullable) MJRefreshComponentAction beginRefreshingCompletionBlock;
 /** 带动画的结束刷新的回调 */
-@property (copy, nonatomic, nullable) MJRefreshComponentAction endRefreshingAnimateCompletionBlock MJRefreshDeprecated("first deprecated in 3.3.0 - Use `endRefreshingAnimationStartingBlock` instead");
+@property (copy, nonatomic, nullable) MJRefreshComponentAction endRefreshingAnimateCompletionBlock MJRefreshDeprecated("first deprecated in 3.3.0 - Use `endRefreshingAnimationBeginAction` instead");
 @property (copy, nonatomic, nullable) MJRefreshComponentAction endRefreshingAnimationBeginAction;
 /** 结束刷新的回调 */
 @property (copy, nonatomic, nullable) MJRefreshComponentAction endRefreshingCompletionBlock;