I want insert tap gesture recognizer on UIWebView
for handle event after UIWebView
is tapped.
Asked
Active
Viewed 422 times
0

Nitish
- 13,845
- 28
- 135
- 263

Masoud Roosta
- 455
- 9
- 19
-
what have you tried so far? – Anik Islam Abhi Apr 24 '18 at 09:37
-
Have you gone through this answer? https://stackoverflow.com/questions/6115534/add-a-uitapgesturerecognizer-to-a-uiwebview?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – skJosh Apr 24 '18 at 09:43
-
Related: https://stackoverflow.com/questions/31107656/intercept-uitapgesturerecognizer-for-uiwebview – Ahmad F Apr 24 '18 at 09:44
-
3Possible duplicate of [Add a UITapGestureRecognizer to a UIWebView](https://stackoverflow.com/questions/6115534/add-a-uitapgesturerecognizer-to-a-uiwebview) – Vinaykrishnan Apr 24 '18 at 09:44
-
I use tap gesture recognizer but no event happened while tapping UIWebView. – Masoud Roosta Apr 24 '18 at 10:14
-
Also, you should use `WKWebView` instead. – Tamás Sengel Apr 26 '18 at 12:25
1 Answers
0
I handle it by putting a button over UIWebView and making this button background color as a clear color, then doing events in this button action.

Andronicus
- 25,419
- 17
- 47
- 88

Masoud Roosta
- 455
- 9
- 19