Beispiel #1
0
        /// <summary>
        /// This the main entry point for the app on iOS
        /// </summary>
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            //Create our window
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            //Register some services
            ServiceContainer.Register (Window);
            ServiceContainer.Register <ISynchronizeInvoke>(() => new SynchronizeInvoke());

            //Apply our UI theme
            Theme.Apply ();

            //Load our storyboard and setup our UIWindow and first view controller
            storyboard = UIStoryboard.FromName ("MainStoryboard", null);
            loginController = storyboard.InstantiateInitialViewController () as LoginController;
            Window.RootViewController = loginController;
            Window.MakeKeyAndVisible ();

            return true;
        }
Beispiel #2
0
        /// <summary>
        /// This the main entry point for the app on iOS
        /// </summary>
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            //Create our window
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            Console.WriteLine("Hola mundo");
            Console.WriteLine("NSBundle.MainBundle.ResourcePath" + NSBundle.MainBundle.ResourcePath);

            //Register some services
            ServiceContainer.Register(Window);
            ServiceContainer.Register <ISynchronizeInvoke>(() => new SynchronizeInvoke());

            //Apply our UI theme
            Theme.Apply();

            //Load our storyboard and setup our UIWindow and first view controller
            storyboard = UIStoryboard.FromName("MainStoryboard", null);
            Window.RootViewController =
                loginController       = storyboard.InstantiateInitialViewController() as LoginController;
            Window.MakeKeyAndVisible();

            return(true);
        }