it means user can't pan and pinch simultaneously and pinch gesture stops pan one.
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
This code is not working for me because it makes these gestures working simultaneously.
By default if I don't use this code then pan gesture stops pinch one but I need the opposite thing.
Updated
@interface SomeClass : UIViewController <UIGestureRecognizerDelegate>
...
@end
@implementation SomeClass
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
@end
solved by editing pan gesture handler: