How can I find an iOS UINavigationController in a Xamarin.Forms dependency?

xandertanxandertan USMember ✭✭

Originally I was able to find the UINavigationController in an iOS dependency while using a Forms MasterDetailPage:

var nav = UIApplication.SharedApplication.KeyWindow.RootViewController.ChildViewControllers.First(). ChildViewControllers.Last().ChildViewControllers.First(); var navcontrol = nav as UINavigationController;

After switching to a Forms TabbedPage, the above code no longer refers to the UINavigationController, even when the TabbedPage is still the root page (replacing the MasterDetailPage). Any ideas anyone?


Sign In or Register to comment.