次のような UILongPressGestureRecognizer セットアップがあります。
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer 割り当て] initWithTarget:self action:@selector(handleLongPress:)]; longPress.numberOfTouchesRequired = 3; longPress.allowableMovement = 30;
私の handleLongPress セレクターでは、UIGestureRecognizerStateBegan、UIGestureRecognizerStateChanged、および UIGestureRecognizerStateEnded の 3 つの状態をチェックしています。UIGestureRecognizerStateChanged は allowableMovement プロパティに関連していますか? 指が 30 ピクセル以上移動した場合にのみその状態をトリガーしたいのですが、現状では、わずかな動きでトリガーされます。