2010-06-28 53 views

回答

19

这不是一个过渡,而是一个modalTransitionStyle。你可以在这里查看文档:http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle

如果您创建一个新的UIViewController,设置其modalTransitionStyleUIModalTransitionStylePartialCurl,然后presentModalViewController:animated:它,你就会得到想要的“半卷曲页”的效果。

+0

谢谢,这是我一直在寻找! – indragie 2010-06-28 19:55:54

6

你说的是iBook风格的翻页动画吗?有一个关于它的博客一块在这里,链接到2个GitHub的项目吧:

http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/

+0

我当时并不是在寻找一个翻页动画,但是那个博客文章是非常棒的读物,谢谢 – indragie 2010-06-28 19:56:33

+0

@JoostSchuur正是我在寻找的东西。谢谢。 – inwit 2012-07-29 18:39:45

1

你有没有尝试漫画摇滚团结?他们有一个真正像iBook一样的页面,通过手指移动。我猜不是私人API,否则他们无法开启。

可以问他们是如何做到这一点;)

0
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.containerView cache:YES];