I've a horizontal UIScrollview that shows around 10 images. I know that we've to use scrollRectToVisible method to move the scrollview programmatically. But what I am looking for is to scroll the scroll view slowly (5 pixels in 1 second) from start to end of the scroll view.
I have seen some pages, but I didn't understand how to integrate following code in my code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:(abs(rMid-pMid)*0.3)];
scrollMid.contentOffset = CGPointMake(rMid*320, 0);
[UIView commitAnimations];