I am developing a scroll list application. It is not immediately clear that there is more content, and there is no scroll indicator (scroll view is called up).
So, to give the user "hey, there is something here ...", I would like the scroll view to do a subtle bounce - down, and then at startup. I tried this:
- (void)viewDidLoad .... [NSTimer scheduledTimerWithTimeInterval:0.8 target:self selector:@selector(bounceScrollView) userInfo:nil repeats:NO]; } - (void)bounceScrollView { [self.verticalScrollViews[0] scrollRectToVisible:CGRectMake(0, 600, 1, 1) animated:YES]; [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(_unbounceScrollView) userInfo:nil repeats:NO]; } - (void)_unbounceScrollView { [self.verticalScrollViews[0] scrollRectToVisible:CGRectZero animated:YES]; }
However, this code makes the view "stuck" about halfway between the two pages.
Any help?
source share