0

I've added the following two UIGestureRecognizers to got triggered on LongPress and Pan Gestures.

_selectionRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(selectionHasBeenRecognized:)];

_dragRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(dragDropGestureHasBeenRecognized:)];

[self.view addGestureRecognizer:_selectionRecognizer];
[self.view addGestureRecognizer:_dragRecognizer];

Each of the two recognizers work fine in single use, but it is not possible to pan directly after the LongPress gesture without releasing my finger and touch again.

Is it possible to combine both recognizers so both gestures could be done simultaneously?

regetskcob
  • 1,172
  • 1
  • 13
  • 35
  • 1
    Do these answers address your question? http://stackoverflow.com/questions/3492200/combining-a-uilongpressgesturerecognizer-with-a-uipangesturerecognizer – jtbandes Dec 05 '16 at 07:10
  • @jtbandes: It seems to address my question. I'll give it a try, thanks :) – regetskcob Dec 05 '16 at 07:12

0 Answers0