@@ -105,6 +105,8 @@ - (void)willMoveToSuperview:(UIView *)newSuperview
// 设置宽度
self.width = newSuperview.width;
+ // 设置位置
+ self.x = 0;
// 记录UIScrollView
_scrollView = (UIScrollView *)newSuperview;
@@ -210,7 +210,7 @@ - (void)setState:(MJRefreshState)state
// 执行动画
[UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{
- // 1.增加65的滚动区域
+ // 1.增加滚动区域
CGFloat top = self.scrollViewOriginalInset.top + self.height;
self.scrollView.contentInsetTop = top;