UITapGestureRecognizer will never go into the UIGestureRecognizerStateBegan state. Only continuous gestures (for example, napkins or a pinch) will cause their recognizers to move from UIGestureRecognizerStatePossible to UIGestureRecognizerStateBegan . Discrete gestures, such as a tap, place their recognizers directly in the UIGestureRecognizerStateRecognized , that is, for one tap, directly in the UIGestureRecognizerStateEnded .
However, perhaps you are looking for a UILongPressGestureRecognizer , which is a continuous recognizer that will go into the UIGestureRecognizerStateBegan , which will allow you to distinguish between the start and end of the touch?
triazotan
source share