私は UIViewController を持っています。このビューから 2 番目のビュー コントローラーに移動したいです。
SecondView *secondView=[[SecondView alloc] initWithNibName:@"SecondView" bundle:nil];
[self.navigationController pushViewController:secondView animated:YES];
[secondView release];
うまくいきません。何もしませんし、エラーもありません。私は何が欠けていますか?
解決
Appdelegate ファイルに、navigationcontroller を追加しました。
UINavigationController *navCtrlr = [[UINavigationController alloc]initWithRootViewController:self.viewController];
[self.window setRootViewController:navCtrlr];
navCtrlr.delegate = self;
navCtrlr.navigationBarHidden = YES;