suse
suse

Reputation: 10563

window as RootViewController with Navigation Controller upon it

UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:windowObj];

Can i do this? Making a window as RootViewController with Navigation Controller upon it.

Upvotes: 1

Views: 563

Answers (1)

Johan Kool
Johan Kool

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

Related Questions