Blog: In the morning because of the rush to do the demo, there to use UIWebView load something, and then click WebView to jump, so he added a uiwebview, and then added a stand-alone gesture
UITapGestureRecognizer. Think there is no problem, wait until the test to find the click UIWebView No response.
Anatomy: UIWebView's head file point in to see, WebView on the Scrollview,scrollview itself is also a click event, in the setting of the agent of UITapGestureRecognizer can be seen, Can capture several gestures.
So in order to be able to respond to your own defined gestures, you should set them in your own proxy:
As follows
-(BOOL) Gesturerecognizer: (Uigesturerecognizer *) Gesturerecognizer Shouldrecognizesimultaneouslywithgesturerecognizer: (Uigesturerecognizer *) othergesturerecognizer{ if (Gesturerecognizer = = Self.tap) { return YES; } return NO;}
If it is your own defined gesture response, if it is not your own defined gesture, it does not respond. = = There is no problem found, and so found, and then back to solve.
I think that more than 5 minutes to solve the matter is worth recording down.
iOS UIWebView add gestures