Search code examples
objective-cuitextviewuigesturerecognizergesture-recognitionuitapgesturerecognizer

What is a UITapAndAHalfRecognizer?


I notice that when I cycle through the gesture recognizers of a UITextView and output the description of each to the console, one of the recognizers that seemed utterly curious was the UITapAndAHalfRecognizer. I know about the others such as UITextTapRecognizer but this one really piqued my interest. Does anyone know what gestures this recognizer handles? How can you have half a tap? Is that a tap and then a press and hold?


Solution

  • I don't know for certain, but I suspect that it's for a tap followed closely by a press (first half of a tap).

    As per Ethan Holshouser' s comment, see also: http://iphonedevwiki.net/index.php/UIGestureRecognizer#UITapAndAHalfRecognizer