UITableView is an extension of UIScrollView, and UITableViewDelegate is an extension of UIScrollViewDelegate.
UIScrollViewDelegate can implement this method:
- (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView
This will allow you to intercept it.
You can also simply disable it using the "scrollsToTop" property in the tableview.
If you just want to know when this will happen, you can use this delegate method:
- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView
source
share