예제 #1
0
        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);
        }
예제 #2
0
        void RegisterTestFlight()
        {
            string testflightKey = "9a624e6a-5140-4ede-a56c-10c8b9a29344";

            if (!string.IsNullOrEmpty(testflightKey))
            {
                TestFlight.TakeOffThreadSafe(testflightKey);
                TestFlight.PassCheckpoint("Starting app");
            }
        }
예제 #3
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            TestFlight.TakeOffThreadSafe(TestFlightAppToken);

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

            viewController = new TestFlightSampleViewController("TestFlightSampleViewController", null);

            window.RootViewController = viewController;

            window.MakeKeyAndVisible();

            return(true);
        }