I have a UIWebView loaded html string with url links inside. if I click the url links, an internal home-made browser will launch to open that link.
I added a UITapGestureRecognizer
to the UIWebView so if the user taps anywhere on the UIWebView, the UIWebView will become larger and open a fuller html string.
I set the - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
to return YES, so the UITapGesture works on the UIWebView without problem.
but a problem occurs when I click on a link inside the UIWebView. clicking on a link will invoke two operations: one is opening the browser for link and the other is to enlarge the UIWebView.
This conflicting is not what I want.
I want two cases separated, i.e., if a user click a link on the UIWebView, then browser will open for that link; if a user tap on the UIWebView where no url links exist, the UIWebView is enlarged.
How can I solve that by make two actions co-exist but no conflicting?
Thanks