I am using tap gesture to detect tap on UIWebView
and it works correct with following code:
UITapGestureRecognizer *targetGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
targetGesture.numberOfTapsRequired = 1;
targetGesture.delegate = self;
[_webView1 addGestureRecognizer:targetGesture];
And i am handling it with UIGestureRecognizerDelegate
methods as follows:-
(void)handleTap:(UITapGestureRecognizer *)sender
(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
Now I want to disable tap gesture while UIWebView
is scrolling.
Same as "NYTimes" ios app doing.