我在我的RootViewController的使用下面的代碼加載一個模態視圖控制器顯示:UINavigationBar的拒絕在模態視圖控制器
[self.navigationController presentModalViewController:accountViewController animated:YES];
在accountViewController廈門國際銀行文件,我設置了導航欄。我的MainWindow.xib和RootViewController.xib也有正確的導航欄設置。此外,我的應用程序代表具有設置導航控制器(I假設)正確:
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
self.navigationController = aNavigationController;
[window addSubview:navigationController.view];
然而,當我加載我accountViewController的UINavigationBar的是無處可看。是不是可以在模態視圖中顯示UINavigationBar?我打算用它來隱藏後退按鈕,並添加一個正確的按鈕...
謝謝澄清 – mootymoots 2010-09-12 20:13:06