Skip to content

Instantly share code, notes, and snippets.

@samvermette
Created January 14, 2012 21:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samvermette/1612967 to your computer and use it in GitHub Desktop.
Save samvermette/1612967 to your computer and use it in GitHub Desktop.
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat maxY = scrollView.contentSize.height+scrollView.contentInset.bottom;
CGFloat botY = scrollView.contentOffset.y+scrollView.frame.size.height;
NSLog(@"y = %f, maxY = %f", botY, maxY);
if(botY >= maxY) {
// load next page
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment