に変更しようとしてRootViewController
いNavigationController
ますdidFinishLaunchingWithOptions
。
しかし、どうすればそれができるのかわかりません。
私もこのリンクを通過しました:
http://starterstep.wordpress.com/2009/03/05/ching-a-uinavigationcontroller%E2%80%99s-root-view-controller/
ここに私のコードがありますdidFinishLaunchingWithOptions
:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIViewController *rootController=[[HomePageController alloc] initWithNibName:@"HomePageController" bundle:nil];
navigationController=[[UINavigationController alloc] initWithRootViewController:rootController];
// presentation=[[PresentationController alloc]initWithNibName:@"PresentationController" bundle:nil];
//
// navigationController=[[UINavigationController alloc]initWithRootViewController:presentation];
//
// presentationList=[[PresentationListController alloc]initWithNibName:@"PresentationListController" bundle:nil];
//
// UINavigationController *listnavigation = [[UINavigationController alloc] initWithRootViewController:presentationList];
//
// revealer=[[ZUUIRevealController alloc]initWithFrontViewController:navigationController rearViewController:listnavigation];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;
}
現在、コメントしてからアプリケーションを実行して変更しrootviewcontroller
ます。ただし、これは実際的なアプローチではありません。
どんな助けでも大歓迎です。