iOS:日历日视图转换
Apple 如何实现 iPhone 日历日视图在日期之间的转换?当您在日视图上滑动手指时,它看起来有点像旋转木马,当日视图在屏幕的一半处时,顶部的日期会发生变化。
我自己重新创建了日视图,但需要弄清楚如何在日之间进行转换。
How does Apple do the iPhone calendar day view transition between dates? When you swipe your finger on the day view it looks a bit like a carousel and when the day view is half way across the screen the date at the top changes.
I have recreated the day view myself but need to figure out how to do the transition between days.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我必须猜测的话?在 UIScrollView 中使用 3 个窗格,例如 此方法。
If I had to guess? Using 3 panes in a UIScrollView like this method.
您不需要滚动视图来执行此操作;只需创建一个视图,其中并排排列 3 个子视图,然后添加平移手势识别器即可。
如果用户移动到右视图,则删除最左边的视图,在右侧添加一个视图,并使当前的右视图成为中心视图。您还需要对左视图执行类似的操作。
You don't need a scroll view to do this; just create a view with 3 subviews inside it arranged side by side, and add a pan gesture recognizer.
If the user moved to the right view, chuck out the leftmost view, add a view on the right, and make the present right view the center view. You need to do a similar thing for the left view as well.