how to get or detect end of the table view in IOS?
- (void) scrollViewDidEndDecelerating:( UIScrollView *)scrollView
{
//Load more values....
if ([scrollView contentOffset].y == scrollView.frame.origin.y) {
NSLog(@"scrolled to top ");
}
if (([scrollView contentOffset].y + scrollView.frame.size.height) == [scrollView contentSize].height) {
NSLog(@"scrolled to bottom");
}
}
No comments:
Post a Comment