I'm trying to enable simultaneous gesture recognition but only for the UIPinchGestureRecognizer
and UIRotationGestureRecognizer
gestures. I don't want it to work for any other gestures. If I set the following property to true it allows all gestures to be recognized simultaneously, how can I limit it to just rotating and scaling?
func gestureRecognizer(UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
See Question&Answers more detail:os