Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page flip effect on iPhone / iPad (for book reader)

anyone has an idea how to build the page flip? I've seen it in flash applications and I want the same functionality for our iPad app ... I want to have a flipped corner on the bottom of the pae that you can drag and flip the page :) ...

like image 213
Ondrej Rafaj Avatar asked Jan 22 '23 03:01

Ondrej Rafaj


2 Answers

When you set the transition use

    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
                       forView:self.view.superview cache:YES];

This should do the trick

like image 198
Nava Carmon Avatar answered Feb 01 '23 13:02

Nava Carmon


You can also use cocos2d framework to do a page flip application (look for CCPageTurn3D for more info).

Both UIViewAnimationTransitionCurlUp/Down and transition used in cocos2d support views with only one visible page (left or right) at a time. If you are interested how to make a page flip effect at all (with left and/or right page visible at a time) take a look at this post: Implementing 2D Page Flip effect on iPhone OS or this one: Adding 3rd dimension to the page flip effect on iPhone OS.

like image 22
lechec Avatar answered Feb 01 '23 11:02

lechec