I am trying to display a new view controller when a certain action is done in my application. I do this using the code below. I notice that the view controller loads but method ViewDidDisappear gets called almost immediately afterwards. I'm not sure why this is happening, any advice?
var window = new UIWindow (UIScreen.MainScreen.Bounds); var rootNavigationController = new UINavigationController(); GroupListViewController groupListViewController = new GroupListViewController(); rootNavigationController.PushViewController(groupListViewController, false); window.RootViewController = rootNavigationController; window.MakeKeyAndVisible ();