Changes

Identifying Gestures using iOS 8 Gesture Recognizers

1 byte added, 19:40, 6 December 2014
The UIGestureRecognizer Class
* '''UISwipeGestureRecognizer''' – Used to detect when the user makes a swiping gesture across the screen. Instances of this class may be configured to detect motion only in specific directions (left, right, up or down).
* '''UIRotationGestureRecognizer''' – Identifies when the user makes a rotation gesture (essentially two fingers in contact with the screen located opposite each other and moving in a circular motion).
* '''UILongPressGestureRecognizer''' – Used to identify when the user touches the screen with one or more fingers for a specified period of time (also referred to as “touch and hold”).
These gesture recognizers must be attached to the view on which the gesture will be performed via a call to the view object’s addGestureRecognizer method. Recognizers must also be assigned an action method that is to be called when the specified gesture is detected. Gesture recognizers may subsequently be removed from a view via a call to the view’s removeGestureRecognizer method, passing through as an argument the recognizer to be removed.