Skip to content

Instantly share code, notes, and snippets.

@freekh
Created February 13, 2012 16:46
Show Gist options
  • Save freekh/1818095 to your computer and use it in GitHub Desktop.
Save freekh/1818095 to your computer and use it in GitHub Desktop.
Infinity scroll
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
if (scrollView.contentOffset.y ==
self.table.contentSize.height - self.table.frame.size.height)
|| (self.table.contentSize.height - self.table.frame.size.height ) < 0) {
//When table is dragged this will be enabled
[self loadMoreElements];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment