Reputation: 6697
I'm trying to change the way a UIWebView reacts when the user do a pinch out gesture (when he's doing that, I zoom out and show multiple webView).
I see 2 solutions but I can't make them work :
Do you have an idea ?
Upvotes: 1
Views: 890
Reputation: 6697
Ok, the anwser is just to set the delegate of my UIPinchGestureRecognizer to self and to override
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)recognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer*) otherRecognizer
{
return YES;
}
Now the pinch is recognized even if the scroll began in the UIWebView
Upvotes: 3