viewDidLoad
次のクラスの任意のクラスのメソッドにナビゲーションコントローラーを追加する方法、私は appdelegate の開始時に追加していません。
1 に答える
2
YourViewController *report = [[YourViewController alloc] init]; // create Object of YourViewController
UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:report]; // add YourViewController as root view controller of UINavigationController
[self presentModalViewController:navigationController animated:YES];
于 2013-03-29T05:56:30.580 に答える