Browse Source

little modify

M了个J 11 years ago
parent
commit
a573d77b4d

+ 2 - 0
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshBaseView.m

@@ -105,6 +105,8 @@ - (void)willMoveToSuperview:(UIView *)newSuperview
         
         // 设置宽度
         self.width = newSuperview.width;
+        // 设置位置
+        self.x = 0;
         
         // 记录UIScrollView
         _scrollView = (UIScrollView *)newSuperview;

+ 1 - 1
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshHeaderView.m

@@ -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;