I have a UIScrollView with paging enabled, and a corresponding UIPageControl to indicate the current page. This works well, but I’d like to introduce inertial scrolling to navigate multiple pages with one swipe.
One example I’ve seen of this is the StickTennis app for iOS. How can I do something similar?

You’d set the
pagingEnabledproperty of the scroll view toNO, then you’d calculate the speed of the scrolling at the moment the user’s finger leaves the screen using numerical derivation. From now on, you could use thes = v0 * t + a / 2 * t ^ 2formula to calculate the new position of the scroll view (whenais a constant deceleration rate andv0is the speed you just calculated), and then you’d repeatedly callscrollRectToVisible:animated:with an appropriately updatedrectargument.