Merge pull request #82 from evands/fix-scroll-to-top

Fix scrollToTop (by tapping on the status bar)
This commit is contained in:
Maz Jaleel 2015-08-17 02:58:25 +04:00
commit f02f0ad8a4
1 changed files with 6 additions and 0 deletions

View File

@ -437,6 +437,12 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
}
}
- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView
{
[self.scrollView scrollRectToVisible:CGRectMake(0,0,1,1) animated:YES];
[self.scrollView flashScrollIndicators];
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
[self _handleScrollingEnded];