Example #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            var compositionRoot = new iOSCompositionRoot();
            var app             = compositionRoot.ResolveApp();

            var splatRegistrar = new iOSSplatRegistrar();

            splatRegistrar.Register(Locator.CurrentMutable, compositionRoot);
            app.Initialize();

            LoadApplication(app);

            return(base.FinishedLaunching(application, options));
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            var compositionRoot = new iOSCompositionRoot();
            DirectLoggingOutputToConsole(compositionRoot.ResolveLoggerService());
            var app = compositionRoot.ResolveApp();

            var splatRegistrar = new iOSSplatRegistrar();
            splatRegistrar.Register(Locator.CurrentMutable, compositionRoot);
            app.Initialize();

            LoadApplication(app);

            return base.FinishedLaunching(application, options);
        }