Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if (scrollView.contentOffset.y <= - 65.0f && !_loading) {
  2.  
  3. // when refresh condition is met (you scrolled beyond the bottom boundary)
  4. [self performSelector:@selector(yourRefreshMethod) withObject:nil afterDelay:2.0];
  5.  
  6. // when refresh condition is not met (you scrolled back to the normal boundary)
  7. [NSObject cancelPreviousPerformRequestsWithTarget:self];
Add Comment
Please, Sign In to add comment