1
votes

I have a UITapGestureRecognizer on my UIViewController. The UIViewController has a UIScrollView which has a UIWebView. Now the problem I am having is how can I ignore the tap if it was going to a link in the UIWebView, in other words when it hits:

- (BOOL)webView:(UIWebView *)webview shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType 

the tap gesture recognizer should be ignored. The problem is there is no way that I can do this. Do you guys have any idea?

1
You add UITapGestureRecognizer to view or UIWebView?Narayana
I added it to the view, what I want is basically when the shouldStartLoadRequest is called it should disable the tap gesture recognizerxonegirlz

1 Answers

1
votes

I believe UIWebView installs its own gesture recognizers; thus, you might want to look into implementing:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer

with some situational logic.