用UIView翻书就像一本书? [英] Turn a page like a Book with UIView?

查看:83
本文介绍了用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:

  • Page View Controller: Note that this is available since iOS 5.0.

同时检查其他libs /方法:

Also check this other libs/methods:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆