Turn a Page Like a Book with Uiview

How to best transition a book app that uses one UIViewController to handle all the pages as UIViews to StoryBoarding and UIPageView?

Check out An Example iOS 5 iPhone UIPageViewController Application article. That chapter will provide a brief overview of the concepts behind the page view controller and an example application designed to demonstrate this class in action.

How to do Animation like BooK front cover in iOS?

Use this code , after long hours work I solved this task , feeling happy :)
Updated:

[UIView setAnimationDelegate:self];
[UIView commitAnimations];
CATransform3D initialTransform = ges.view.layer.transform;
initialTransform.m34 = 1.0 / -1100;
layer.transform = initialTransform;
layer.anchorPoint = CGPointMake(-0.0, 0.5);
NSLog(@"%f %f",layer.frame.origin.x,layer.frame.origin.y);
[UIView beginAnimations:@"Scale" context:nil];
[UIView setAnimationDuration:3];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
CATransform3D rotationAndPerspectiveTransform = ges.view.layer.transform;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI , 0 , -ges.view.bounds.size.height/2, 0);
layer.transform = rotationAndPerspectiveTransform;
[UIView setAnimationDelegate:self];
[UIView commitAnimations];

[UIView setAnimationDelegate:self];
[UIView commitAnimations];


Related Topics



Leave a reply



Submit