简体   繁体   English

如何降低UIScroll视图的滚动速度

[英]How to reduce scrolling speed of UIScroll view

I have a scrollview in my iphone application. 我的iPhone应用程序中有一个scrollview。 In the runtime i'm adding multiple content page in to that and users can scroll the content horizontally. 在运行时中,我向其中添加了多个内容页面,用户可以水平滚动内容。

Im faciing a issue here . 我在这里关注一个问题。 consider if the user scrolled it quickly then sometimes thr will be a delay loading content of the page. 请考虑用户是否快速滚动它,有时这可能会延迟加载页面内容。

Is it possible for me to reduce the scrolling speed whether user tries to scroll the view. 用户是否尝试滚动视图,是否可以降低滚动速度。 i want to delay the speed of scrolling 我想延迟滚动速度

hope every one understood my question Thanks 希望每个人都明白我的问题谢谢

Have you checked this option 您是否勾选了这个选项

scrollView.decelerationRate = UIScrollViewDecelerationRateFast;

don't get confused with 'RateFast' it is decelerationRate which means slow down. 不要与'RateFast'混淆,它是decelerationRate,这意味着放慢速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM