1

I am using three gesture named Pan, Pinch and Rotate. I want To use Pinch and Rotate gesture together and Pan separate. I am using gestureDelegate method like below :

 func gestureRecognizer(_: UIGestureRecognizer,
                           shouldRecognizeSimultaneouslyWithGestureRecognizer:UIGestureRecognizer) -> Bool
    {
        return true

    }

But it runs thrice. I want two Simultaneously.

Nirav D
  • 71,513
  • 12
  • 161
  • 183
JAck
  • 854
  • 9
  • 18
  • check http://stackoverflow.com/questions/11855645/is-there-a-gesture-recognizer-that-handles-both-pinch-and-pan-together – Jen Jose Aug 10 '16 at 10:21

1 Answers1

1

If you have implemented this single method shouldRecognizeSimultaneouslyWithGestureRecognizer of UIGestureRecognizerDelegate than simply remove the delegate of UIPanGestureRecognizer or could not set it.

Nirav D
  • 71,513
  • 12
  • 161
  • 183