Ver Fonte

修正了Footer显示在顶部的Bug

MJ Lee há 11 anos atrás
pai
commit
1cae42ca02

BIN
MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 3
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshFooterView.m

@@ -137,9 +137,7 @@ - (void)setState:(MJRefreshState)state
             if (MJRefreshStateRefreshing == oldState) {
                 self.arrowImage.transform = CGAffineTransformMakeRotation(M_PI);
                 [UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{
-//                    self.scrollView.mj_contentInsetBottom = self.scrollViewOriginalInset.bottom;
-#warning 这句代码修复了,bottom值不断累加的bug
-                    self.scrollView.mj_contentInsetBottom -= self.mj_height;
+                    self.scrollView.mj_contentInsetBottom = self.scrollViewOriginalInset.bottom;
                 }];
             } else {
                 // 执行动画