I’m new in monotouch and I’m having a problem using NavigationViewController:
In the FinishedLauching method, if I comment this line:
window.AddSubview(viewController.NavigationController.View);
The window rotates with no problem but the navigationController doesn’t work.
If this line is in code(not comment) the navigationController works but the screen doesn’t rotates.
Anyone knows how solve this?
Setting the RootViewController property of the UIWindow is the proper way to use the Navigation Controller.
Also don’t forget to override the ShouldAutorotateToInterfaceOrientation method in your controller. Here is a full sample