/// <summary> /// Wills the hide view controller. /// </summary> /// <param name="splitController">Split controller.</param> /// <param name="viewController">View controller.</param> /// <param name="barButtonItem">Bar button item.</param> /// <param name="popoverController">Popover controller.</param> public void WillHideViewController(UISplitViewController splitController, UIViewController viewController, UIBarButtonItem barButtonItem, UIPopoverController popoverController) { barButtonItem.Title = NSBundle.MainBundle.LocalizedString("Master", "Master"); NavigationItem.SetLeftBarButtonItem(barButtonItem, true); masterPopoverController = popoverController; Console.WriteLine(masterPopoverController.ToString()); }