gpt4 book ai didi

cocoa-touch - UIScrollView decelerationRate with pagingEnabled

转载 作者:行者123 更新时间:2023-12-04 06:31:23 29 4
gpt4 key购买 nike

UIScrollView有一个 decelerationRate可用于修改 ScrollView 的减速率的属性。但是当pagingEnabled = YES时不考虑.无论减速率如何,它都具有相同的速度。有人有解决方案吗?

最佳答案

我知道这个问题很老,但是 here's a solution I found .

我必须设置 pagingEnabled = NO并手动实现分页功能。如果您有 UIScrollViewpagingEnabled = YES ,然后设置 decelerationRate属性不会对分页速度产生任何影响(如您所见)。

关于cocoa-touch - UIScrollView decelerationRate with pagingEnabled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5379310/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com