Exemple #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow (UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            _mainVC = new MainViewController();
            _navigationController = new UINavigationController(_mainVC);
            Window.RootViewController = _navigationController;

            // make the window visible
            Window.MakeKeyAndVisible ();

            return true;
        }
Exemple #2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            _mainVC = new MainViewController();
            _navigationController     = new UINavigationController(_mainVC);
            Window.RootViewController = _navigationController;

            // make the window visible
            Window.MakeKeyAndVisible();

            return(true);
        }