用UIView翻书就像一本书? [英] Turn a page like a Book with UIView?
问题描述
我试图在 UIViews
之间切换,看起来好像你正在书中翻页。
I am trying to switch between UIViews
by making it look like you are turning a page in a book.
UIViewAnimationTransitionCurlUp
非常接近,如果我可以让它向左或向右卷曲。这可能吗?
The UIViewAnimationTransitionCurlUp
is pretty close if I could get it to curl toward the Left or Right. Is this possible?
我试图使用 CATRansition
但没有一种动画类型靠近页面转动。
I have tried to use the CATRansition
but none of the animation types come close to a page turning.
有关如何创建此页面动画转换的建议,将页面向左或向右翻?
Any suggestions on how to create this page animation transition that would turn a page toward the left or right?
推荐答案
编辑(2012年6月):现在可以使用原生Apple实现,请检查:
Edit (June 2012) : It is now possible to use the native Apple implementation, check:
- 页面视图控制器:请注意,这是从iOS 5.0开始提供的。
- Page View Controller: Note that this is available since iOS 5.0.
同时检查其他libs /方法:
Also check this other libs/methods:
- 离开:不太现实,但非常容易使用。
- PageCurl :效果非常好,使用方便。
- 使用锥形变形算法实现iBooks页面卷曲:太棒了,但它只是一个概念证明,难以扩展。
- Leaves: Not so realistic, but really easy to use.
- PageCurl: Really nice effect, easy to use.
- Implementing iBooks page curling using a conical deformation algorithm: Amazing, but it's just a proof of concept, difficult to expand.
这篇关于用UIView翻书就像一本书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!