0

I'm implementing both UILongPressGestureRecognizer and UIPanGestureRecognizer

The UIPanGestureRecognizer should start on a drag and the UILongPressGestureRecognizer should start on a long press

Unfortunately when UIPanGestureRecognizer is called with a drag also the UILongPressGestureRecognizer is being called.

Thanks!

János
  • 32,867
  • 38
  • 193
  • 353
jkigel
  • 1,592
  • 6
  • 28
  • 49

1 Answers1

1

This UIGestureRecognizerDelegate method does exactly what I looked for:

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

See: Combining a UILongPressGestureRecognizer with a UIPanGestureRecognizer

Community
  • 1
  • 1
Venk
  • 5,949
  • 9
  • 41
  • 52