如何控制表格视图的滚动速度? [英] how to control table view scrolling speed?

查看:42
本文介绍了如何控制表格视图的滚动速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要控制表格视图的滚动速度?如何以编程方式做到这一点.请帮忙.提前致谢.詹森·雅各布

I want control table view scrolling speed?How can I do that programmatically. Please help. Thanks in advance. Jenson Jacob

推荐答案

您可以设置 tableView.decelerationRate 属性.

这是一个浮点值,用于确定用户抬起手指后的减速率.而且,您的应用程序可以使用 UIScrollViewDecelerationRateNormal UIScrollViewDecelerationRateFast 常数作为合理减速率的参考点.

It is a floating-point value that determines the rate of deceleration after the user lifts their finger. And, your application can use the UIScrollViewDecelerationRateNormal and UIScrollViewDecelerationRateFast constants as reference points for reasonable deceleration rates.

这篇关于如何控制表格视图的滚动速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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