public override bool FinishedLaunching (UIApplication app, NSDictionary options) { TestFlight.TakeOffThreadSafe ("fb57eee9-f5f5-4ec3-96eb-404e6dd2573d"); Shared = this; FileCache.SaveLocation = System.IO.Directory.GetParent (Environment.GetFolderPath (Environment.SpecialFolder.Personal)).ToString () + "/tmp"; UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false); window = new UIWindow (UIScreen.MainScreen.Bounds); UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes { TextColor = UIColor.White }); var productVc = new ProductListViewController (); productVc.ProductTapped += ShowProductDetail; navigation = new UINavigationController (productVc); navigation.NavigationBar.TintColor = UIColor.White; navigation.NavigationBar.BarTintColor = Color.Blue; window.RootViewController = navigation; window.MakeKeyAndVisible (); return true; }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Shared = this; FileCache.SaveLocation = System.IO.Directory.GetParent (Environment.GetFolderPath (Environment.SpecialFolder.Personal)).ToString () + "/tmp"; UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false); window = new UIWindow (UIScreen.MainScreen.Bounds); UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes { TextColor = UIColor.White }); UINavigationBar.Appearance.TintColor = UIColor.White; UINavigationBar.Appearance.BarTintColor = Color.Blue; var productVc = new ProductListViewController (); productVc.ProductTapped += ShowProductDetail; navigation = (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) ? (IRootViewController)new PadRootViewController () : new PhoneRootViewController (); navigation.PushViewController(productVc, false); window.RootViewController = navigation as UIViewController; window.MakeKeyAndVisible (); return true; }
public override bool FinishedLaunching (UIApplication app, NSDictionary options) { Shared = this; FileCache.FileExists = (file) => (File.Exists(file)); UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false); window = new UIWindow (UIScreen.MainScreen.Bounds); UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes { TextColor = UIColor.White }); var productVc = new ProductListViewController (); productVc.ProductTapped += ShowProductDetail; navigation = new UINavigationController (productVc); navigation.NavigationBar.TintColor = UIColor.White; navigation.NavigationBar.BarTintColor = Color.Blue.ToUIColor (); window.RootViewController = navigation; window.MakeKeyAndVisible (); return true; }