views:

228

answers:

1

Hello,

Please tell me what all ViewControllers can be placed on UINavigationViewContoller? i'e can i make the UINavigationViewController as root view for UITableViewController/UITabViewController?

Thank You

A: 

From the Apple docs:

initWithRootViewController:

Initializes and returns a newly created navigation controller.

  • (id)initWithRootViewController:(UIViewController *)rootViewController Parameters

rootViewController

The view controller that resides at the bottom of the navigation stack. This object cannot be an instance of the UITabBarController class.

So anything but an UITabBarController is fine

pheelicks
i was not clear when i went through the apple doc., ll u please tel me, is it restriction to make UITabViewController as root view to UINavigationViewController or is it restriction to make UINavigationViewController as root view for UITabViewController?
suse
hey please reply... i'm really going mad :(
suse
Again: You CANNOT have the UITabViewController as the root view to UINavigationController. UITabViewController CAN have UINavigationController as one of its views.
pheelicks