How do I put information on the flipped side of the page?
How do I p开发者_如何学编程ut information on the flipped side of the page ?
The "utility application" template in XCode creates a simple application with a main view and a flipside view; take a look at that to see and example of how the "horizontal flip" transition animation works.
Assuming you've defined a controller FlipsideViewController
and your view is in a nib file named FlipsideView
, you might do something like:
FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil];
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:controller animated:YES];
[controller release];
精彩评论