iPhone SDK 4“半卷曲网页过渡”
在史蒂夫乔布斯的iPhone SDK今年4早些时候的基调公告,一个幻灯片显示,‘半卷曲网页过渡’是新的SDK的一部分:iPhone SDK 4“半卷曲网页过渡”
alt text http://cl.ly/c203189b44788d490ae8/content
我已经浏览了iOS API文档,我似乎无法找到此转换。有谁知道它在哪里?
这不是一个过渡,而是一个modalTransitionStyle
。你可以在这里查看文档:http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle
如果您创建一个新的UIViewController
,设置其modalTransitionStyle
到UIModalTransitionStylePartialCurl
,然后presentModalViewController:animated:
它,你就会得到想要的“半卷曲页”的效果。
你说的是iBook风格的翻页动画吗?有一个关于它的博客一块在这里,链接到2个GitHub的项目吧:
http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/
你有没有尝试漫画摇滚团结?他们有一个真正像iBook一样的页面,通过手指移动。我猜不是私人API,否则他们无法开启。
可以问他们是如何做到这一点;)
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.containerView cache:YES];
谢谢,这是我一直在寻找! – indragie 2010-06-28 19:55:54