Attention
Ami's answer is completely WRONG! A Recognizer can generate a UIGestureRecognizerStateBegan , but with a UISwipeGestureRecognizer , only the UIGestureRecognizerStateEnded event is UIGestureRecognizerStateEnded .
But instead, touchesBegan: works. The problem is that if it supports user interaction, then it only works for the current view, and you need to pass it to the parent view.
source share