Reputation: 63
I want to implement the navigation controller in iPad, I know that it is not possible in xcode to do the navigation controller in iPad, there is a thing in which I can enter the view controller and with the help of this we can do the coding of navigation controller.
How to solve this problem?
Upvotes: 0
Views: 2458
Reputation: 17054
I know that it is not possible in xcode to do the navigation controller in iPad
Just create an instance of UINavigationController
and add the view on the window. The same way you do on the iPhone
UIViewController *aVC = [[UIViewController alloc] initX];
UINavigationController *navController = [[UINavigationController alloc] initWithRootVC:aVC];
[[UIApplication sharedApplication].keyWindow addSubview:navController.view];
Upvotes: 2