Example #1
0
        //
        // 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.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            // If you have defined a view, add it here:
            // window.AddSubview (navigationController.View);

            //---- instantiate a new navigation controller
            var rootNavigationController = new UINavigationController();

            //---- instantiate a new home screen
            HomeScreen homeScreen = new HomeScreen();

            //---- add the home screen to the navigation controller
            // (it'll be the top most screen)
            rootNavigationController.PushViewController(homeScreen,false);

            //---- set the root view controller on the window. the nav
            // controller will handle the rest
            this.window.RootViewController = rootNavigationController;
            // make the window visible
            this.window.MakeKeyAndVisible ();
            return true;
        }
Example #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            this.window = new UIWindow (UIScreen.MainScreen.Bounds);
            var rootNavigationController = new UINavigationController();
            HomeScreen homeScreen = new HomeScreen();
            rootNavigationController.PushViewController(homeScreen, false);
            this.window.RootViewController = rootNavigationController;

            this.window.MakeKeyAndVisible ();
            return true;
        }
		// This method is invoked when the application has loaded its UI and it is ready to run
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			this.window = new UIWindow (UIScreen.MainScreen.Bounds);

			//---- instantiate a new navigation controller
			var rootNavigationController = new UINavigationController();
			//---- instantiate a new home screen
			HomeScreen homeScreen = new HomeScreen();
			//---- add the home screen to the navigation controller (it'll be the top most screen)
			rootNavigationController.PushViewController(homeScreen, false);

			//---- set the root view controller on the window. the nav controller will handle the rest
			this.window.RootViewController = rootNavigationController;

			this.window.MakeKeyAndVisible ();

			return true;
		}
        // This method is invoked when the application has loaded its UI and it is ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            this.window = new UIWindow(UIScreen.MainScreen.Bounds);

            //---- instantiate a new navigation controller
            var rootNavigationController = new UINavigationController();
            //---- instantiate a new home screen
            HomeScreen homeScreen = new HomeScreen();

            //---- add the home screen to the navigation controller (it'll be the top most screen)
            rootNavigationController.PushViewController(homeScreen, false);

            //---- set the root view controller on the window. the nav controller will handle the rest
            this.window.RootViewController = rootNavigationController;

            this.window.MakeKeyAndVisible();

            return(true);
        }