variable speed scrolling UIScrollView

I am developing an app where I need to created a that will scroll at the speed provided by a UISlider presented to the end user.

I will provide the end user with a range of numbers form 0 to 100. These numbers will represent inches per minute for speed.

The UIScrollview will be different sizes for each user depending on the content they provide. The speed of the scrolling needs to be consistent no matter the size of the UIScroll View.

Can someone please tell me how this can be accomplished.

a. This isn't a Swift question. You should move it to one of the iOS forums, such as Cocoa Touch.


b. "Scroll speed" doesn't make any sense as a pre-determined number. Scrolling happens when the user drags or flicks with a finger, and the speed at which the scrolling happens is a result of what the finger does.


c. If you want the content to scroll automatically, without being touched (other than a tap to start it, perhaps), then you're really talking about animation, not scrolling. For that, you'd probably have to do something like animate the scroll view's "contentOffset" property over a calculated time interval.


d. But go ask in Cocoa Touch, where there'll be more people who can help answer.

variable speed scrolling UIScrollView
 
 
Q