Example #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            //Localize.SetLocale ();
#if DEBUG
            Xamarin.Calabash.Start();
#endif
            Profile.EnableUpdatesOnAccessTokenChange(true);
            Settings.AppId       = appId;
            Settings.DisplayName = appName;

            //Intercom.SetApiKey("ios_sdk-7149ca11857611fe62c97d3f7643ed3606b7e5f5", "f1xl6ben");

            //Intercom.RegisterUnidentifiedUser();

            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var presenter = new StrendipIosViewPresenter(this, Window);
            setup = new Setup(this, presenter);
            setup.Initialize();
            var startup = Mvx.Resolve <IMvxAppStart>();
            startup.Start();

            var navBarLook = UINavigationBar.Appearance;
            navBarLook.SetTitleTextAttributes(new UITextAttributes()
            {
                //TODO:if nav bar is Turquoise, must change this to UIColor.White
                TextColor = UIColor.White
            });
            navBarLook.BarTintColor = UIColor.FromRGB(75, 171, 229);
            //navBarLook.TintColor = UIColor.White;

            UISegmentedControl.Appearance.TintColor      = UIColor.FromRGB(75, 171, 229);
            UIActivityIndicatorView.Appearance.TintColor = UIColor.FromRGB(246, 194, 96);
            UIActivityIndicatorView.Appearance.Color     = UIColor.FromRGB(246, 194, 96);
            UISwitch.Appearance.OnTintColor = UIColor.FromRGB(75, 171, 229);

            KeyboardManager.Init();
            //UIApplication.SharedApplication.StatusBarStyle

            Window.MakeKeyAndVisible();

            //This method verifies if you have been logged into the app before, and keeps you logged in after you reopen or kill your app.
            //return this.FinishedLaunching(application, launchOptions);
            return(true);
        }
Example #2
0
        protected override IMvxIosViewPresenter CreatePresenter()
        {
            var customPresenter = new StrendipIosViewPresenter(this.ApplicationDelegate, this.Window);

            return(customPresenter);
        }