判断UITableView滚动是否到底
- (
void
)scrollViewDidScroll:(
UIScrollView
*)aScrollView {
CGPoint
offset = aScrollView
.contentOffset
;
CGRect
bounds = aScrollView
.bounds
;
CGSize
size = aScrollView
.contentSize
;
UIEdgeInsets
inset = aScrollView
.contentInset
;
float
y = offset
.y
+ bounds
.size
.height
- inset
.bottom
;
float
h = size
.height
;
float
reload_distance = -
2
0
;
if
(y > h + reload_distance) {
//距离到底 20 像素
}
}
}
posted on 2015-07-23 10:52 yucaijiang 阅读(395) 评论(0) 编辑 收藏 举报