public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { MapView.RegisterLicense(CartoLicense); UIViewController initial = new MapListController("Advanced Map Samples", Samples.RowSources); Controller = new UINavigationController(initial); Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); Device.NavigationBarHeight = Controller.NavigationBar.Frame.Height; #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { MapView.RegisterLicense(CartoLicense); UIViewController initial = new MapListController("Advanced Samples", Samples.List); Controller = new UINavigationController(initial); // Navigation bar background color Controller.NavigationBar.BarTintColor = Colors.CartoRed; // Back button color Controller.NavigationBar.TintColor = UIColor.White; // Title color Controller.NavigationBar.TitleTextAttributes = new UIStringAttributes { ForegroundColor = UIColor.White, Font = UIFont.FromName("HelveticaNeue", 15) }; Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); Carto.Utils.Log.ShowInfo = true; Carto.Utils.Log.ShowWarn = true; Carto.Utils.Log.ShowDebug = true; Carto.Utils.Log.ShowError = true; return(true); }