Skip to content

Instantly share code, notes, and snippets.

@juliantejera
Created February 25, 2015 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliantejera/7c528f43fef6207eb86a to your computer and use it in GitHub Desktop.
Save juliantejera/7c528f43fef6207eb86a to your computer and use it in GitHub Desktop.
Scroll View to top or bottom
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if(scrollView.contentOffset.y
>=
(scrollView.contentSize.height - scrollView.frame.size.height)){
NSLog(@"BOTTOM REACHED");
}
if(scrollView.contentOffset.y <= 0.0){
NSLog(@"TOP REACHED");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment