I am using a UIPinchGestureRecognizer, which uses 2 fingers by default. If a user decides to perform the multitask gesture, the pinch gestures action is also activated.
Is there a way to cancel the pinch gesture from occurring if more than four UITouch instances are detected?
Edit Removed sample code as it was the wrong approach.
Since you're not subclassing the UIPinchGestureRecognizer, you shouldn't be using
touchBegan:withEvent:. Instead you should be handling it in the method that is called when a pinch occurs.