UIWebView click user interaction delay

whenever I do a click operation on a UIWebView, for example, by clicking a link, there is a slight delay between the click and the actual highlight / activation of the link.

Is there any way to disable this delay?

I read that this is possible in a UIScrollView with

setDelaysContentTouches:NO 

Is this also possible in UIWebViews?

+4
source share
2 answers

In iOS5, a UIScrollView owned by UIWebView was opened so you can change its behavior. Therefore, to remove click delays, you can simply:

 [webView.scrollView setDelaysContentTouches:NO] 

As a bonus, you can make scrolling in the UIWebView interface a little more natural by changing decelerationRate:

 [webView.scrollView setDecelerationRate:UIScrollViewDecelerationRateNormal] 
+5
source

All Articles