IPhone - how can I programatically scroll UIScrollView from start to end slowly?

You can use NSTimer like (void) viewDidLoad { if (scrollingTimer == nil) { scrollingTimer = NSTimer scheduledTimerWithTimeInterval:(0.06) target:self selector:@selector(autoscrollTimerFired) userInfo:nil repeats:YES; } } - (void) autoscrollTimerFired { if (scrollPoint. Y == 583) // at where you want to stop scroll { scrollingTimer invalidate; scrollingTimer = nil; } scrollPoint = CGPointMake(scrollPoint. X, scrollPoint.

Y + 1); self. ScrollView setContentOffset:scrollPoint animated:NO; } hope its help you.

You can use NSTimer like - (void) viewDidLoad { if (scrollingTimer == nil) { scrollingTimer = NSTimer scheduledTimerWithTimeInterval:(0.06) target:self selector:@selector(autoscrollTimerFired) userInfo:nil repeats:YES; } } - (void) autoscrollTimerFired { if (scrollPoint. Y == 583) // at where you want to stop scroll { scrollingTimer invalidate; scrollingTimer = nil; } scrollPoint = CGPointMake(scrollPoint. X, scrollPoint.

Y + 1); self. ScrollView setContentOffset:scrollPoint animated:NO; } hope its help you...

I don't personally have any particular use for this, but I tested it and it works like a charm! – miamk Jul 28 at 14:59 This code really works. But the scrolling is not smooth.

Even after changing animated to YES, the scrolling is not smooth. How can I achieve that functionality? – Satyam svv Jul 29 at 11:12 scrolling is depended on interval time and increment of Y – Maulik Jul 29 at 11:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions