0

我正在UILongPressGestureRecognizer实施UIPanGestureRecognizer

UIPanGestureRecognizer应该从拖动开始,应该UILongPressGestureRecognizer从长按开始

不幸的是,当UIPanGestureRecognizer被拖动时也UILongPressGestureRecognizer被调用。

谢谢!

4

1 回答 1

1

这个 UIGestureRecognizerDelegate 方法完全符合我的要求:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer 
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer

请参阅:将 UILongPressGestureRecognizer 与 UIPanGestureRecognizer 结合使用

于 2012-10-22T07:11:32.933 回答