Skip to content

Instantly share code, notes, and snippets.

@timd
Created February 16, 2012 10:02
Show Gist options
  • Save timd/1843757 to your computer and use it in GitHub Desktop.
Save timd/1843757 to your computer and use it in GitHub Desktop.
scrollViewDidEndDragging:willDecelerate:
-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
CGFloat contentOffsetY = scrollView.contentOffset.y;
if (contentOffsetY < -60.0) {
[self displayActivitySpinner];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment