Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone SDK 4 "Half curl page transition"

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've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is?

like image 812
indragie Avatar asked Jun 28 '10 15:06

indragie


2 Answers

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.

like image 198
pgb Avatar answered Nov 02 '22 02:11

pgb


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/

like image 35
Joost Schuur Avatar answered Nov 02 '22 01:11

Joost Schuur