public DataSource(RootViewController controller) { this.controller = controller; // Create the ViewController which will display play specific information // and re-use it for each play. PlayView = new DetailViewController(); // Create the data we need to display Plays = Play.CreateDemoPlays(); }
public DataSource (RootViewController controller) { this.controller = controller; // Create the ViewController which will display play specific information // and re-use it for each play. PlayView = new DetailViewController (); // Create the data we need to display Plays = Play.CreateDemoPlays (); }
/// <summary> /// This method is invoked when the application has loaded and is ready to run. In this /// method you should instantiate the window, load the UI into it and then make the window /// visible. /// </summary> /// <remarks> /// You have 5 seconds to return from this method, or iOS will terminate your application. /// </remarks> public override bool FinishedLaunching (UIApplication app, NSDictionary options) { window = new UIWindow (UIScreen.MainScreen.Bounds); var controller = new RootViewController ("RootViewController", null); navigationController = new UINavigationController (controller); window.RootViewController = navigationController; // make the window visible window.MakeKeyAndVisible (); return true; }
/// <summary> /// This method is invoked when the application has loaded and is ready to run. In this /// method you should instantiate the window, load the UI into it and then make the window /// visible. /// </summary> /// <remarks> /// You have 5 seconds to return from this method, or iOS will terminate your application. /// </remarks> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); var controller = new RootViewController("RootViewController", null); navigationController = new UINavigationController(controller); window.RootViewController = navigationController; // make the window visible window.MakeKeyAndVisible(); return(true); }