问题描述
在Steve Jobs今年早些时候的iPhone SDK 4的主题演讲中,其中一张幻灯片显示,半卷曲页面转换是新SDK的一部分:
In Steve Jobs' keynote announcement of the iPhone SDK 4 earlier this year, one of the slides showed that a "Half curl page transition" was part of the new SDK:
我浏览过iOS API docs和我似乎找不到这个转换。
I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is?
推荐答案
这不是一个转换,而是一个 modalTransitionStyle
。您可以在这里查看文档: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle a>
It's not a transition, but a modalTransitionStyle
. You can check the docs here: 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:
,你会得到所需的半卷曲页效果。
If you create a new UIViewController
, set its modalTransitionStyle
to UIModalTransitionStylePartialCurl
, and then presentModalViewController:animated:
it, you'll get the desired "half curl page" effect.
这篇关于iPhone SDK 4“半卷曲页面转换”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!