轻击手势(TapGestureRecognizer),
轻扫手势 (SwipeGestureRecognizer),
长按手势(LongPressGestureRecognizer),
拖动手势(PanGestureRecognizer),
捏合手势(PinchGestureRecognizer),
旋转手势(RotationGestureRecognizer),
一:
LongPressGestureRecognizer: numberOfTapsRequired 点击次数
numberOfTouchesRequired 点击手指数
minimumPressDuration 点击的时间
allowableMovement 是否允许移动
说明:长按手势的常用状态如下(delegate)
开始:UIGestureRecognizerStateBegan
改变:UIGestureRecognizerStateChanged
结束:UIGestureRecognizerStateEnded
取消:UIGestureRecognizerStateCancelled
失败:UIGestureRecognizerStateFailed