private void InitSamples() { this.controller = new UINavigationController(); this.monokitSamples = new Samples(this.controller); this.window.AddSubview(this.controller.View); // setup main index this.tableController = new TableViewController(UITableViewStyle.Grouped); this.tableController.Title = "MonoKit"; this.controller.PushViewController(this.tableController, false); this.monokitSamples.SetupMainIndexSection(this.tableController.Source); this.window.MakeKeyAndVisible(); }
private void InitSamples() { this.controller = new MyNavigationController(); this.monokitSamples = new Samples(this.controller); // create a new window instance based on the screen size this.window = new UIWindow(UIScreen.MainScreen.Bounds); // setup main index this.tableController = new TableViewController(UITableViewStyle.Grouped); this.tableController.Title = "MonoKit"; this.controller.PushViewController(this.tableController, false); this.monokitSamples.SetupMainIndexSection(this.tableController.Source); this.window.RootViewController = this.controller; this.window.MakeKeyAndVisible(); }