public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); main = new MainViewController(); nav = new UINavigationController(main); // If you have defined a root view controller, set it here: Window.RootViewController = nav; // make the window visible Window.MakeKeyAndVisible(); return true; }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); main = new MainViewController(); nav = new UINavigationController(main); // If you have defined a root view controller, set it here: Window.RootViewController = nav; // make the window visible Window.MakeKeyAndVisible(); return(true); }