iPhone SDK 4 “Half curl page transition”

梦想与她 提交于 2020-01-09 09:04:54

问题


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:

alt text http://cl.ly/c203189b44788d490ae8/content

I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is?


回答1:


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

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.




回答2:


Are you talking about iBook style page turning animations? There's a blog piece about it here, with links to 2 GitHub projects with it:

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




回答3:


Have you try Manga Rock Unity? They have a page turning really like iBook, moving by fingers. Not private API I guess, or else they cannot be on.

Can ask how they do that ;)




回答4:


you can checkout XBPageCurl project on github it also provide example how to do that




回答5:


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


来源:https://stackoverflow.com/questions/3133644/iphone-sdk-4-half-curl-page-transition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!