【原】UIScrollView判断是否滚动到底
//监视scrollview是否滚动到底,到底则显示“更多”按钮
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
[refreshHeaderViewegoRefreshScrollViewDidScroll:scrollView];//下拉刷新
CGPoint contentOffsetPoint = _tableView.contentOffset;
CGRect frame = _tableView.frame;
if (contentOffsetPoint.y == _tableView.contentSize.height - frame.size.height || _tableView.contentSize.height < frame.size.height)
{
NSLog(@"scroll to the end");
self.btnLoad.hidden = NO;
}
}