views:

160

answers:

1

Hello,

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

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

A: 

-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.

Johan Kool