Overall implementation:
Click root, that is, anywhere in red, and the page will flip like a book flip. Flip to first, that is, the blue interface. When you click "root" on the top of the page, the page will go to the "root" page again, that is, the Red Page.
At the beginning:
Click "root" at any location:
Click on the top of "first:
Code:
-(Void) touchesbegan :( nsset *) touches withevent :( uievent *) event {// click root, that is, anywhere in red, and the page will flip like a book flip. Flip to first, that is, the blue interface. When you click "root" on the top of the page, the page will go to the "root" page again, that is, the Red Page. Firstviewcontroller * firstview = [[firstviewcontroller alloc] init]; uinavigationcontroller * nav = [[uinavigationcontroller alloc] initwithrootviewcontroller: firstview]; nav. modaltransitionstyle = uimodaltransitionstylepartialcurl; [self. navigationcontroller presentviewcontroller: nav animated: Yes completion: Nil];}
Implementation of the page flip effect (like the home page of a full-seat group purchase)