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