Reputation: 10563
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:windowObj];
Can i do this? Making a window as RootViewController with Navigation Controller upon it.
Upvotes: 1
Views: 563
Reputation: 15937
-initWithRootViewController: takes an UIViewController as its argument. Passing an UIWindow instance instead won't work. You can however use the view of the navigation controller as your applications main view.
Upvotes: 2