/BDDROneFingerZoomGestureRecognizer

UIGestureRecognizer subclass to enable one-finger-zoom gestures.

Primary LanguageObjective-CMIT LicenseMIT

BDDROneFingerZoomGestureRecognizer

Description

UIGestureRecognizer subclass to enable one-finger-zoom gestures.

This concrete subclass of UIGestureRecognizer enables one-finger-zooming (like in the Google Maps iOS app). It has support for elastic bouncing, like UIScrollView does:

Example

If you're going to use this with UIScrollView or want to see it in action make sure to check out BDDRScrollViewAdditions.

Installation

Simply add the files in the BDDROneFingerZoomGestureRecognizer.h and BDDROneFingerZoomGestureRecognizer.m to your project or add BDDROneFingerZoomGestureRecognizer to your Podfile if you're using CocoaPods.

Customization

There are several properties that change the default behavior, especially interesting are numberOfTapsRequired, minimumPressDuration and allowableMovement. For more info see the header.

Contact

Follow @bddckr on Twitter.

Copyright and License

Copyright (c) 2013 Christopher - Marcel Böddecker
Licensed under The MIT License (MIT).