快速按钮vs删除ios UIWebView上的触摸延迟?

问题描述:

我有一个适用于ios的webapp。我想要实现所谓的“快速点击按钮”详细介绍,如:快速按钮vs删除ios UIWebView上的触摸延迟?

http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone https://developers.google.com/mobile/articles/fast_buttons

,但我从其他的帖子看到,在iOS5中,我们可以访问属于一个UIWebView从而使的UIScrollView我们可以删除点击延迟。

UIwebView links delay

[webView.scrollView setDelaysContentTouches:NO] 

这是目前推荐的方法:我们可以通过这样做呢?这似乎更简单,因为我只针对ios。

感谢

从我可以告诉,setDelaysContentTouches不能消除300ms的延迟。至少,它没有在我的测试中。但是,JavaScript解决方案链接到我的工作。