//项目要求tableView滚动到底部就自动加载下一页,UITableView继承自UIScrollView 所以可以在
//scrollViewDidEndDecelerating这个方法中进行判断操作
1 -(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
if (scrollView == myScrollView) {
CGPoint offset = myScrollView.contentOffset;
CGRect bounds = myScrollView.bounds;
CGSize size = myScrollView.contentSize;
UIEdgeInsets inset = myScrollView.contentInset;
float y = offset.y + bounds.size.height - inset.bottom;
float h = size.height; if((int)y == (int)h ) { //滑动到底部 //执行加载下一页 }
}
}