// // 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) { global::Xamarin.Forms.Forms.Init(); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); LoadApplication(new App(dbPath)); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); LoadApplication(new App(dbPath, new SQLitePlatformIOS())); return(base.FinishedLaunching(app, options)); }
// // 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) { global::Xamarin.Forms.Forms.Init(); // get file location and pass it to app class string displayText = FileAccessHelper.GetLocalFilePath("people.db3"); LoadApplication(new App(displayText)); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); // Code for starting up the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); LoadApplication(new App(dbPath)); return(base.FinishedLaunching(app, options)); }
// // 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) { Forms.Init(); window = new UIWindow(UIScreen.MainScreen.Bounds); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); window.RootViewController = App.GetMainPage(new SQLitePlatformIOS(), dbPath).CreateViewController(); window.MakeKeyAndVisible(); return(true); }