Example #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:
            // Window.RootViewController = myViewController;

            NSError configureError;

            Context.SharedInstance.Configure(out configureError);
            if (configureError != null)
            {
                Console.WriteLine("Error configuring the Google context: {0}", configureError);
            }

            viewController            = new MainViewController();
            navController             = new UINavigationController(viewController);
            Window.RootViewController = navController;

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

            return(true);
        }
        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:
            // Window.RootViewController = myViewController;

            NSError configureError;
            Context.SharedInstance.Configure (out configureError);
            if (configureError != null) {
                Console.WriteLine ("Error configuring the Google context: {0}", configureError);
            }

            viewController = new MainViewController ();
            navController = new UINavigationController (viewController);
            Window.RootViewController = navController;

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

            return true;
        }