UIScrollView 在其边界时弹起半页
我的应用程序中有一个滚动视图。它工作得很好,但是当它处于边缘时(开始和最后一张照片),它会反弹......很糟糕。如果我尝试滚动,它会正确地弹回来,但如果我滚动得更强(更快),它会弹回前一张照片的一半。
让您更容易明白我的意思,这是我拍摄的视频(对于质量,抱歉,它是用 iPad 拍摄的:D)
I have a scrollview in my app. It works fine, but when it's at its edges (beginning and the last photo), it bounces... bad. If I try to scroll it bounces me back correctly, but if I do it stronger (faster) it bounces half to the previous photo.
It's easier to make you see what I mean, here's a video I took (sorry for the quality, it's taken with an iPad :D )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想通过此教程使用 Three20 进行照片查看< /a>.
You may want to use Three20 for photo viewing with this tutorial.
最后我发现这是因为滚动视图宽度的计数不正确。感谢所有的评论和回答!
Finally I found that this was because an incorrect count of the scroll view width. Thanks for all the comments and answers!