I have two UIViewControllers
and a UISplitViewController
. I am adding UISplitViewController
as root on 2nd UIViewController
. Here is my code:
[splitViewController setViewControllers:[NSArray arrayWithObjects:rootNav, detailNavigate, nil]];
[splitViewController setDelegate:detail];
self.view.window.rootViewController=splitViewController;
With this code UISplitViewController
gets added as root.Now from BACK button on SplitViewController. How to pop to Previous UIViewController
? If I use this code, then NavigationBarButton
on UIViewController
does not work.
[self.navigationController presentViewController:backToView animated:YES completion:nil];
How can i navigate to and from UIViewControllers
?