Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page Curl on iOS

I look around for similar posts but didn't find a solution. I'm looking for a simple page turn animation (without finger tracking) like this: http://www.youtube.com/watch?v=_vOYvaNhSHw

Is it possible to create or license it?

Many thanks for your help.

like image 857
eozzy Avatar asked Mar 25 '11 16:03

eozzy


2 Answers

This fragment of code do the trick:

[UIView beginAnimations:@"Flip" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.base.view cache:YES];

[user.view removeFromSuperview];
[base.view addSubview:home.view];

[UIView commitAnimations];

In this example the "user" viewcontroller is removed, and the "home" viewcontroller is added, with a pageflip like transition

like image 189
Farlei Heinen Avatar answered Oct 23 '22 00:10

Farlei Heinen


Yes, that's possible.

Read the following blog tutorial.

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

http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

http://wdnuon.blogspot.com/2010/05/implementing-ibooks-page-curling-using.html

like image 28
Jhaliya - Praveen Sharma Avatar answered Oct 23 '22 01:10

Jhaliya - Praveen Sharma