|
|
@@ -89,7 +89,9 @@ CGFloat const JLRefreshFooterHeight = 30;
|
|
|
|
|
|
self.scrollView.jl_insetBottom += self.jl_height;
|
|
|
|
|
|
- self.jl_y = self.scrollView.jl_ContentHeight;
|
|
|
+// self.jl_y = self.scrollView.jl_ContentHeight;
|
|
|
+ // 设置位置
|
|
|
+ self.jl_y = (((int)(self.scrollView.jl_ContentHeight / self.scrollView.jl_height)) + 1) * self.scrollView.jl_height;
|
|
|
|
|
|
} else { // remove
|
|
|
|
|
|
@@ -103,7 +105,17 @@ CGFloat const JLRefreshFooterHeight = 30;
|
|
|
|
|
|
[super scrollViewContentSizeDidChange:change];
|
|
|
|
|
|
- self.jl_y = self.scrollView.jl_ContentHeight;
|
|
|
+// self.jl_y = self.scrollView.jl_ContentHeight;
|
|
|
+ // 设置位置
|
|
|
+// if (self.scrollView.jl_ContentHeight >= self.scrollView.jl_height) {
|
|
|
+// self.jl_y = self.scrollView.jl_ContentHeight;
|
|
|
+// } else {
|
|
|
+// self.jl_y = self.scrollView.jl_height;
|
|
|
+// }
|
|
|
+
|
|
|
+ self.jl_y = (((int)(self.scrollView.jl_ContentHeight / self.scrollView.jl_height)) + 1) * self.scrollView.jl_height;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (void)scrollViewContentOffsetDidChange:(NSDictionary<NSKeyValueChangeKey,id> *)change {
|