Simple Gesture Recognizers
Version 2.5, 2013-01-24
Refactored to better adhere to naming conventions and for clarity.
(Full Revision History)
Xcode 4.5 or later, iOS 6 or later
iOS 6 or later
This sample shows how you can easily use UITapGestureRecognizer, UISwipeGestureRecognizer, and UIRotationGestureRecognizer to detect user gestures. It illustrates the use of basic target-action messaging using recognizers, and also shows: how you can toggle the behavior of a recognizer at runtime using delegation; options for maintaining references to recognizers; and interaction with the exclusive touch setting for views.