I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an
For monotouch / xamarin IOS:
inside UISplitViewController class;
UINavigationController mainNav = this._navController; //List controllers = mainNav.ViewControllers.ToList(); mainNav.ViewControllers = new UIViewController[] { }; mainNav.PushViewController(detail, true);//to have the animation