Does Core Animation provide public APIs for iBook-style page transitions?

Does Core Animation provide public APIs for iBook-style page transitions? I saw this blog post which is an almost exact rebuild of the iBook page-curl transitions, but it relies on private APIs.

Is there a public version at all, and if not, then something in open source?

+2


a source to share


3 answers


Check out the answer for Flipboard or iBooks style animations , code available @GitHub.



+2


a source


If you would like to run your own solution using OpenGL ES, I wrote an introduction to simulating page curl using the tapered deformation algorithm . While this is probably not the same solution that Apple uses, it looks pretty realistic and can handle the general case of viewing animation from any angle, not just straight.

Since it is pure OpenGL and does not rely on any proprietary APIs, it is also portable to platforms other than iPhone OS.



While curling itself is trivial to implement, you will need to write your own finger tracking code if you want interactive animations that are a little more complex.

+4


a source


No. iBooks uses tons of private APIs, including navigating to this page.

The only page hover animation you can use are the UIViewAnimationTransitionCurlUp and Down full-text transitions, and the UIModalTransitionStylePartialCurl half-countries.

+3


a source







All Articles