I have a UIScrollView and I’m calling scrollRectToVisible:animated:YES on it.
I would like to set the speed at which it is animated. Can that be done?
I have a UIScrollView and I’m calling scrollRectToVisible:animated:YES on it. I would like to
Share
I ended up finding a solution. In my case, the scrolling was animated programmatically after launch, to mimic a slot machine (with 3 horizontal UIScrollViews). Was doing this with the scrollRectToVisible:animated: method.
I got to set a custom speed using UIView’s beginAnimation:
AnimationDuration depends on the distance the scroller has to move between each “drawing”.