本文转载至 http://blog.csdn.net/cerastes/article/details/39612177
- -(void)scrollViewDidScroll:(UIScrollView *)scrollView{
- CGPoint offset = scrollView.contentOffset;
- CGRect bounds = scrollView.bounds;
- CGSize size = scrollView.contentSize;
- UIEdgeInsets inset = scrollView.contentInset;
- float y = offset.y + bounds.size.height - inset.bottom;
- float h = size.height;
-
- float reload_distance = 10;
- if (y > (h + reload_distance)) {
- [self requestProductList];
- }
- }
判断uiscrollView滑到底部
原文:http://www.cnblogs.com/Camier-myNiuer/p/4463447.html