Can I disable / edit the scroll bar to automatically go up when I press the status bar?

I use an application with a tableView that automatically scrolls down, so clicking on the status bar that would normally go to the top of the table causes problems (it starts to scroll, but if the scroll automatically scrolls, it stops and leaves it somewhere in the middle).

I would like to either turn it off, or at least stick some code when it is tapped to temporarily pause the timer, and then resume it when it reaches the top.

Is there any way to achieve any of these things?

+5
source share
2 answers

UIScrollView ( UITableView ) scrollsToTop, YES, , . , , NO.

, iOS , . YES NO -scrollViewShouldScrollToTop: , .

, :

- (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView
{
    // disable timer
    return YES;
}

- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView
{
    // re-enable timer
}
+12

:

[myView setScrollsToTop:NO];
+7

All Articles