Search code examples
iphonesdkuiscrollviewzooming

Doubletap and slide/drag finger to zoom in/out


If anyone came across the google maps app for iOS there is a great feature to zoom in/out with one finger: Doubletap on the uiscrollview and then immediately slide finger up or down to zoom in/out. Does anyone know how this is achieved? Did google post any snippet of that?


Solution

  • I added this functionality to my UIScrollView category.
    The actual tap recognition is easy, calculating the "correct" (whatever feels "correct") zoomScale is the problem… If you think the category isn't handling this good enough, please don't hesitate to tell me and open a new issue on the github page.