Exemple #1
0
 public static SaveAndLoad_iOS GetGASInstance()
 {
     if (thisRef == null)
     {
         // it's ok, we can call this constructor
         thisRef = new SaveAndLoad_iOS();
     }
     return(thisRef);
 }
Exemple #2
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)
        {
            global::Xamarin.Forms.Forms.Init();

            int dim1 = (int)UIScreen.MainScreen.NativeBounds.Width;
            int dim2 = (int)UIScreen.MainScreen.NativeBounds.Height;

            if (dim1 >= dim2)
            {
                App.ScreenWidth  = dim1;
                App.ScreenHeight = dim2;
            }
            else
            {
                App.ScreenWidth  = dim2;
                App.ScreenHeight = dim1;
            }

            SaveAndLoad_iOS.GetGASInstance().InitializeNativeGAS();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }