1.UITapGestureRecognizer 点击/双击手势
enum UIGestureRecognizerState : Int {
case Possible // the recognizer has not yet recognized its gesture, but may be evaluating touch events. this is the default state
case Began // the recognizer has received touches recognized as the gesture. the action method will be called at the next turn of the run loop
case Changed // the recognizer has received touches recognized as a change to the gesture. the action method will be called at the next turn of the run loop
case Ended // the recognizer has received touches recognized as the end of the gesture. the action method will be called at the next turn of the run loop and the recognizer will be reset to UIGestureRecognizerStatePossible
case Cancelled // the recognizer has received touches resulting in the cancellation of the gesture. the action method will be called at the next turn of the run loop. the recognizer will be reset to UIGestureRecognizerStatePossible
case Failed // the recognizer has received a touch sequence that can not be recognized as the gesture. the action method will not be called and the recognizer will be reset to UIGestureRecognizerStatePossible
}
本文地址:https://www.stayed.cn/item/22183
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我