I'm trying to limit the number of touches recognised on a UIScrollView as it's executing with another gesture that has more than one touch required. I don't want the pan & swipe gestures to fire if the number of touches is greater than 1. But I'm having no success.
I've subclassed the UIScrollView and overridden the obvious methods, but numberOfTouches always returns 1?
-(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
if (gestureRecognizer.numberOfTouches > 1)
{
return NO;
}
return YES;
}