views:

25

answers:

1

in my app I have three views. Originally the appDelegate opened the xib file for the mainViewController, and the preset settings on my application template included a flipsideViewController, which would be shown when an information button was hit. Later I decided to include another view controller and xib file, called CountySelectionViewController. The xib file has a button that opens the xib file for the mainViewController via the following:

MainViewController *controller = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];

controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:controller animated:YES]; [controller release];

my question is, should I use the same thing to go back to the CountySelectionViewController as well as its xib? or is there a better way?