Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • But the animation in that case is so fast that you never actually see the image, just the destination. Commented Jan 7, 2009 at 22:28
  • 2
    Enclose your scrollRectToVisible:animated: method call in a UIView beginAnimations/commitAnimations block and use UIView's setAnimationDuration: at the start of that block. This overrides the default animation duration. You can make the scroll view pan as slowly as you want that way. Commented Jan 7, 2009 at 23:14
  • That doesn't seem to slow down the scrolling. Here's what I'm doing: [UIView beginAnimations:@"bay pan" context:nil]; [UIView setAnimationDuration:10]; [UIView setAnimationDelegate:self]; [scrollView scrollRectToVisible:newRect animated:YES]; [UIView commitAnimations]; Commented Jan 7, 2009 at 23:55
  • This lead me down the right path, so I'm giving you the "Accepted" to give you the reputation, and then posting my own answer to provide the code. Commented Jan 8, 2009 at 5:52