本文转载至 http://blog.csdn.net/cerastes/article/details/39612177
  1. -(void)scrollViewDidScroll:(UIScrollView *)scrollView{
  2. CGPoint offset = scrollView.contentOffset;  // 当前滚动位移
  3. CGRect bounds = scrollView.bounds;          // UIScrollView 可视高度
  4. CGSize size = scrollView.contentSize;         // 滚动区域
  5. UIEdgeInsets inset = scrollView.contentInset;
  6. float y = offset.y + bounds.size.height - inset.bottom;
  7. float h = size.height;
  8. float reload_distance = 10;
  9. if (y > (h + reload_distance)) {
  10. [self requestProductList];
  11. }
  12. }
05-07 11:47
查看更多