I am developing an App in ISGL3D. I need to recognise only one Gesture at a time
i.e. either PICNH or PAN..
Is there any way to do that??
I am developing an App in ISGL3D. I need to recognise only one Gesture at a time
i.e. either PICNH or PAN..
Is there any way to do that??
You have to implement the UIGestureRecognizerDelegate
method gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:
and return NO
You can use this function for recognise only one Gesture at a time:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
if (gestureRecognizer.view != otherGestureRecognizer.view)
return NO;
return YES;
}