Пример #1
0
        public override UIViewController GetViewController(UIApplication application, string[] restorationIdentifierComponents, NSCoder coder)
        {
            // GetViewController is used only to restore the navigation controller
            // can we check that a presenter exists?
            // can/should we serialize?
            this.PrintLaunchState("GetViewController");

            var presenter = new SuperMvxIosViewPresenter(this, Window);
            var nav       = presenter.CreateRestoredNavigationController();

            Window.RootViewController = nav;
            return(nav);
        }
Пример #2
0
        public override bool WillFinishLaunching(UIApplication application, NSDictionary launchOptions)
        {
            this.PrintLaunchState("WillFinishLaunching");

            if (Window == null)
            {
                Window = new UIWindow(UIScreen.MainScreen.Bounds);
            }

            var presenter = new SuperMvxIosViewPresenter(this, Window);
            var setup     = new Setup(this, presenter);

            setup.Initialize();

            return(true);
        }