Пример #1
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create our window
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();
			
			// instantiate and load our main screen onto the window
			mainViewController = new MainViewController ();
			window.RootViewController = mainViewController;
			
			//
			return true;
		}
Пример #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create our window
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.MakeKeyAndVisible();

            // instantiate and load our main screen onto the window
            mainViewController        = new MainViewController();
            window.RootViewController = mainViewController;

            //
            return(true);
        }
        //========================================================================

        //========================================================================
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //---- create our window
            this._window = new UIWindow(UIScreen.MainScreen.Bounds);
            this._window.MakeKeyAndVisible();

            //---- are we running an iPhone or an iPad?
            this.DetermineCurrentDevice();

            //---- instantiate and load our main screen onto the window
            this._mainViewController = new MainViewController();
            this._window.AddSubview(this._mainViewController.View);

            //----
            return(true);
        }
 // called for iOS6 and later
 public override void LocationsUpdated(CLLocationManager manager, CLLocation[] locations)
 {
     MainViewController.UpdateLocation(ms, locations [locations.Length - 1]);
 }
 public override void UpdatedLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation)
 {
     MainViewController.UpdateLocation(ms, newLocation);
 }