怎样判断tableview是否滚动到底部? |
|
100分 |
3 down vote
in the tableview delegate do something like this – (void)scrollViewDidScroll:(UIScrollView *)aScrollView { float reload_distance = 10; |
UITableView is a subclass of UIScrollView, and UITableViewDelegate conforms to UIScrollViewDelegate. So the delegate you attach to the table view will get events such as scrollViewDidScroll:, and you can call methods such as contentOffset on the table view to find the scroll position.
|
|
THX,我试试
|