How to create a page curl animation?

Any way to imitate something like that? Isn't there an API to execute something like "Half page curl" or something else?

alt text

+6
objective-c iphone animation uiview
source share
3 answers
controller.modalTransitionStyle = UIModalTransitionStylePartialCurl; [self presentModalViewController:controller animated:YES]; 

UIModalTransitionStyle Transition styles are available when presenting view controllers. Below are four different transition styles. "UIModalTransitionStylePartialCurl" is the one you need.

 typedef enum { UIModalTransitionStyleCoverVertical, UIModalTransitionStyleFlipHorizontal, UIModalTransitionStyleCrossDissolve, UIModalTransitionStylePartialCurl, } UIModalTransitionStyle; 

Apple Documentation: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html

Hope this helps!

+12
source share

Try the following. In this case, Settings is a UIViewController routine that will be displayed behind page curl. self is also a UIViewController that is displayed, its view will remain on top.

 -(void)presentSettings{ Settings *eset = [[Settings alloc] init]; //eset.modalPresentationStyle = UIModalPresentationFullScreen; eset.modalTransitionStyle = UIModalTransitionStylePartialCurl; [self presentModalViewController:eset animated:YES]; } 

Please note that Curl is only available in iOS 3.2 and later.

+1
source share

I think this may be what you are looking for:

 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; [UIView commitAnimations]; 
0
source share

All Articles