//@synthesize window; //@synthesize navigationController; public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { CGRect screenBounds = UIScreen.MainScreen.Bounds; this.Window = new UIWindow(screenBounds); DemoTableViewController demoTableViewController = new DemoTableViewController(); NavigationController = new UINavigationController(demoTableViewController); this.Window.RootViewController = NavigationController; Window.AddSubview(NavigationController.View); Window.MakeKeyAndVisible(); return(true); }
//@synthesize window; //@synthesize navigationController; public override bool FinishedLaunching( UIApplication application, NSDictionary launchOptions) { CGRect screenBounds = UIScreen.MainScreen.Bounds; this.Window = new UIWindow( screenBounds); DemoTableViewController demoTableViewController = new DemoTableViewController(); NavigationController = new UINavigationController(demoTableViewController); this.Window.RootViewController = NavigationController; Window.AddSubview(NavigationController.View); Window.MakeKeyAndVisible(); return true; }