我正在显示一个模态视图,它是一个UITableViewController
类。由于某种原因,当我显示它时它不会显示导航栏。这是我的代码:
SettingsCreateAccount *detailViewController = [[SettingsCreateAccount alloc] initWithStyle:UITableViewStyleGrouped];
detailViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
detailViewController.navigationController.navigationBarHidden = NO;
[self.navigationController presentModalViewController:detailViewController animated:YES];
detailViewController = nil;
[detailViewController release];
我以为默认显示了它?如果有帮助,我从另一个类(也由UITableViewController
托管)调用此方法UINavigationController
。有想法吗?