UIScrollView问题
我已经实现了一个加载 8 个图像的滚动视图,我还有 8 个启用了交互和触摸事件的图像,因此当用户触摸 8 个图像之一时,滚动视图滚动到该位置,用户也可以手动滚动。除了一件事之外,一切都很好。
如果您滚动到滚动视图中的第 4 页,然后决定要查看图像 8 并触摸第 8 个图像,则滚动视图将正确滚动到该图像,问题是如果您现在触摸滚动视图,它会自动滚动回页面4、我不想这么做。
任何帮助。
谢谢
I've implemented a scrollview that loads 8 images, I also have 8 images with interaction enabled and touch events so when a user touches one of the 8 images the scrollview scrolls to that position, the user can also scroll manually. All works great apart from one thing.
If you scroll to say page 4 in the scrollview, then decide you want to view image 8 and touch the 8th image, the scrollview will scroll to that image correctly, the problem is that if you now touch the scrollview it automatically scrolls back to page 4, which I don't want to do.
Any help.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决了这个问题,它与分页模式有关,所以我只在跟踪和拖动时启用分页,并完全禁用它其他时候,这现在效果很好。
I've fixed the problem, it was to do with paging mode, so I only enable paging when tracking and dragging and disable it at all other times, this works great now.