iPhone SDK 4 “Half curl page transition”

后端 未结 5 2252
轻奢々
轻奢々 2020-12-08 10:49

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.

I\

相关标签:
5条回答
  • 2020-12-08 11:26

    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/

    0 讨论(0)
  • 2020-12-08 11:38

    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 ;)

    0 讨论(0)
  • 2020-12-08 11:40

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

    0 讨论(0)
  • 2020-12-08 11:43
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.containerView cache:YES];
    
    0 讨论(0)
  • 2020-12-08 11:49

    It's not a transition, but a modalTransitionStyle. You can check the docs here: https://developer.apple.com/documentation/uikit/uiviewcontroller/1621388-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.

    0 讨论(0)
提交回复
热议问题