I have created a subclass of UIWebView
, and have implemented the
touchesBegan
, touchesMoved
and touchesEnded
methods.
but the webview subclass is not handling the touch
events.
Is there any method to handle the touch events inside the UIWebView
subclass ???
Best Answer
No subclassing needed, just add a
UITapGestureRecognizer
:Add the
<UIGestureRecognizerDelegate>
protocol in the header file, and add this method: