使用手势进行水平 UIView 过渡
好的,开始了……
当您在 iPhone 主屏幕上向左或向右滑动手势来访问应用程序页面时,您可以在当前应用程序页面和要移动到的下一个应用程序页面之间实现无缝过渡。
我希望能够创造出 UIView 几乎“缝合在一起”的感觉,就像 iPhone 主屏幕上不同的应用程序页面一样。
有没有办法做到这一点? 也许在 Apple 示例代码示例之一中的某处?
希望这是有道理的。
ok, here goes....
When you gesture right or left on the iPhone home screen to access your pages of applications, you get a seamless transition between the current page of apps and the next one you're moving to.
I'd like to be able to create the feel of UIViews being almost 'stitched together' in the same way that different pages of apps are available on the iPhone home screen.
Is there a way to do this? Perhaps somewhere in one of the Apple sample code examples?
Hope this makes sense.
是的,苹果这样做的方式以及最好的方式是使用 UIScrollView,请查看苹果在这里提供的页面控件示例应用程序 https://developer.apple.com/iphone/library/samplecode/PageControl/index.html,您应该能够修改它来执行以下操作你想要它做...希望它有帮助!
Yes, the way apple does it and the best way to do it is with UIScrollView, look at the the Page Control example app provided by apple here https://developer.apple.com/iphone/library/samplecode/PageControl/index.html, you should be able to modify this to do what you want it to do...hope it helps!