带分页的 4 个方向滚动视图
我需要实现一个滚动视图(按下按钮时)将根据按下的按钮向上、向左、向下或向右翻页。用户还可以无限期地朝同一方向翻页,这将在一种轮播中加载视图。所以我有3个viewController....首先显示viewController 1....用户按下左键,它显示viewController2,左键再次显示viewController3,左键再次返回viewController 1等,上、下、右也是如此。
有谁知道实现这个的好方法?我对所有建议持开放态度。
非常感谢
朱尔斯
I need to implement a scroll view which (on a button press) will page either up, left, down or right depending on which button was pressed. Also the user can indefinately page in the same direction which will load the views in a kind of carousel. So I have 3 viewControllers.... viewController 1 is shown first....The user presses left, it shows viewController2, left again shows viewController3, left again is back to viewController 1 etc. and the same for up,down,right.
Does anyone know a good way to implement this? Im open to all suggestions.
Many thanks
Jules
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑-第二次尝试明确解释:
考虑这个矩阵。
Edit - second attempt at a clear explanation:
Consider this matrix.