Contents

reset()

Overridden to reset internal state when a gesture recognition attempt completes.

Declaration

func reset()

Mentioned in

Discussion

The runtime calls this method after the gesture-recognizer state has been set to UIGestureRecognizer.State.ended, recognized, UIGestureRecognizer.State.cancelled, or UIGestureRecognizer.State.failed—in other words, any of the terminal states for a gesture recognition attempt. Subclasses should reset any internal state in preparation for a new attempt at gesture recognition. After this method is called, the gesture recognizer receives no further updates for touches that have begun but haven’t ended.

See Also

Related Documentation

Implementing subclasses