I'm writing a UIScrollView component that the user interacts with in the same manner as a he does in a map app like google maps or Apple's native map app.
I'm looking to give the user the same experience of scrolling and zooming that he is used to get - i.e - a decelerating effect when scrolling and zooming.
The scrolling part is easy to implement by setting the decelerationRate property of the UIScrollView.
My question is - how can I implement the same effect for the zoom-in zoom-out?
There seems to be no existing APIs for inertial zooming. Here's the basic idea of custom implementation. You can tweak around the coefficients.