iPhone dev:在UIWebView中提高滚动速度? [英] iPhone dev: Increase scroll speed in UIWebView?

查看:216
本文介绍了iPhone dev:在UIWebView中提高滚动速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中我在UIWebView中呈现本地HTML文件。然而,这些文件有时很大,并且使用默认滚动速度到达你想要的地方需要很长时间。是否有任何方法提高UIWebView的垂直滚动速度?

I have an app in which I render local HTML files in a UIWebView. The files, however, are sometimes large, and getting to where you want takes a long time with the default scroll speed. Is there any way to boost up the vertical scroll speed of a UIWebView?

推荐答案

在iOS 5中, $ c> scrollView 属性。

In iOS 5 we can access the scrollView property of the UIWebView.

+,可以简单调用:

webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;

这篇关于iPhone dev:在UIWebView中提高滚动速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆