我正在UILongPressGestureRecognizer
实施UIPanGestureRecognizer
UIPanGestureRecognizer
应该从拖动开始,应该UILongPressGestureRecognizer
从长按开始
不幸的是,当UIPanGestureRecognizer
被拖动时也UILongPressGestureRecognizer
被调用。
谢谢!
我正在UILongPressGestureRecognizer
实施UIPanGestureRecognizer
UIPanGestureRecognizer
应该从拖动开始,应该UILongPressGestureRecognizer
从长按开始
不幸的是,当UIPanGestureRecognizer
被拖动时也UILongPressGestureRecognizer
被调用。
谢谢!
这个 UIGestureRecognizerDelegate 方法完全符合我的要求:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
请参阅:将 UILongPressGestureRecognizer 与 UIPanGestureRecognizer 结合使用