Quote:
Originally Posted by chevoldavis
In IB just make sure you are adding the tableview to the navigation controller element. I think I am understanding your question correctly.
|
Yes, that would be my question. So, if I have to add the tableView to the navigation controller element, do I just tell my method that switches views, located in my app delegate class to switch to the navigation controller view?
Right now my code is this to switch to the settings view.
Code:
-(void)flipToSettings {
SettingsViewController *settingsView = [[SettingsViewController alloc] initWithNibName:@"SettingsView" bundle:nil];
[self setSettingsViewController:settingsView];
[settingsView release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.5];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:window cache:YES];
[gameViewController.view removeFromSuperview];
[self.window addSubview:[settingsViewController view]];
[UIView commitAnimations];
}
So would that become this?
Code:
-(void)flipToSettings {
SettingsViewController *settingsView = [[SettingsViewController alloc] initWithNibName:@"SettingsView" bundle:nil];
[self setSettingsViewController:settingsView];
[settingsView release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.5];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:window cache:YES];
[gameViewController.view removeFromSuperview];
[self.window addSubview:[settingsViewControllerNavigationController view]];
[UIView commitAnimations];
}