UIScrollView停止减速

发布于 2024-08-17 13:06:31 字数 118 浏览 4 评论 0原文

在 iPhone 3.0 中立即停止 UIScrollView 减速的最佳方法是什么?

我想保持 UIScrollView 的减速,直到它自然停止或用户执行某个操作,无论先发生什么。

谢谢!

What's the best way to immediately stop the deceleration of an UIScrollView in iPhone 3.0?

I would like to keep the deceleration of the UIScrollView until it naturally stops or the user performs a certain action, whatever happens first.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半透明的墙 2024-08-24 13:06:32

未经测试的建议即将出现:)

当捕获按钮点击事件时,您将读取 [scrollView contentOffset].x 是什么,并在动画关闭的情况下将偏移量设置为此值。

Untested suggestion coming up:)

When the button tap event is caught, you read what the [scrollView contentOffset].x is, and set the offset to this value with animation OFF.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文