Hello,
1.Create another class, with xib file for example :secondViewController
You can use that :
Code:
- (IBAction)switch {
secondViewController *controller = [[[secondViewController alloc] initWithNibName:@"secondViewController"] autorelease];
[self presentModalViewController:controller animated:NO];
}
You create an animation
Code:
- (IBAction)switch {
secondViewController *controller = [[[secondViewController alloc] initWithNibName:@"secondViewController"] autorelease];
controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller animated:YES];
}