What iPhone APIs can I use to implement transition animations, similar to transitioning to an iBook page?

I am creating an iPad application that will have several paper pages, and I would like to implement a page transition effect that is similar to the animation that you see when you turn the pages into iBooks on iPad. A few questions...

  • Is this animation available somewhere in the UIKit API or should I implement it myself?
  • If I have to implement it myself, what good approach or API should I learn? It definitely has a 3D feel, can it use the OpenGL ES API for this?
+7
ios iphone uikit
source share
4 answers

Apple certainly uses OpenGL ES to implement it. The actual Apple API used is private , but this blogger has a start implementation with sample code.

+6
source share

If you want to implement your own solution using OpenGL ES, here is writeup to get you started. Although I'm not sure if this is the same algorithm that Apple uses, it looks pretty close. At the very least, this will not force your application to prohibit the use of a private API.

+2
source share

The problem was that the API containing the page freezing library used to create the same effect remains undocumented, so it cannot be used in the app store. Fortunately, Ole Begemann created the Github project in which he provided some code that makes it easy to add a very similar effect to his own applications.

Tom Brow ( http://tombrow.com/ ) originally created a project for an iBooks-like interface called Leaves ( http://github.com/brow/leaves ), which was later forked ( http: // github. com / ole / leaves / tree / twopages ) on Ole Begemann supports 2 side by side in landscape mode .

+2
source share

To update this question, Apple has released an official way (starting with version 5.0) to use its animation, check the UIPageViewController .

+2
source share

All Articles