public MonoTouch.UIKit.UIViewController GetViewController(MonoTouch.UIKit.UIApplication application, string[] restorationIdentifierComponents, MonoTouch.Foundation.NSCoder coder) { NSString key = (NSString)restorationIdentifierComponents.Last <Object> (); if (key.Equals("MMDrawer")) { return(this.Window.RootViewController); } else if (key.Equals("MMExampleCenterNavigationControllerRestorationKey")) { return(((MMDrawerController.MMDrawerController) this.Window.RootViewController).CenterViewController); } else if (key.Equals("MMExampleRightNavigationControllerRestorationKey")) { return(((MMDrawerController.MMDrawerController) this.Window.RootViewController).RightDrawerViewController); } else if (key.Equals("MMExampleLeftNavigationControllerRestorationKey")) { return(((MMDrawerController.MMDrawerController) this.Window.RootViewController).LeftDrawerViewController); } else if (key.Equals("MMExampleLeftSideDrawerController")) { UIViewController leftVC = ((MMDrawerController.MMDrawerController) this.Window.RootViewController).LeftDrawerViewController; if (leftVC.GetType() == typeof(UINavigationController)) { return(((UINavigationController)leftVC).TopViewController); } else { return(leftVC); } } else if (key.Equals("MMExampleRightSideDrawerController")) { UIViewController rightVC = ((MMDrawerController.MMDrawerController) this.Window.RootViewController).RightDrawerViewController; if (rightVC.GetType() == typeof(UINavigationController)) { return(((UINavigationController)rightVC).TopViewController); } else { return(rightVC); } } return(null); }
public bool ShouldRestoreApplicationState(MonoTouch.UIKit.UIApplication application, MonoTouch.Foundation.NSCoder coder) { return(true); }
public bool FinishedLaunching(MonoTouch.UIKit.UIApplication application, MonoTouch.Foundation.NSDictionary launchOptions) { this.Window.BackgroundColor = UIColor.White; this.Window.MakeKeyAndVisible(); return(true); }