コード例 #1
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create our window
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();

			// instantiate our main navigatin controller and add it's view to the window
			mainNavController = new UINavigationController ();

			iPhoneHome = new HomeScreen ();
			mainNavController.PushViewController (iPhoneHome, false);

			window.RootViewController = mainNavController;

			// how to check if multi-tasking is supported
			if (UIDevice.CurrentDevice.IsMultitaskingSupported) {
				// code here to change your app's behavior
			}

			return true;
		}
コード例 #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create our window
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.MakeKeyAndVisible();

            // instantiate our main navigatin controller and add it's view to the window
            mainNavController = new UINavigationController();

            iPhoneHome = new HomeScreen();
            mainNavController.PushViewController(iPhoneHome, false);

            window.RootViewController = mainNavController;

            // how to check if multi-tasking is supported
            if (UIDevice.CurrentDevice.IsMultitaskingSupported)
            {
                // code here to change your app's behavior
            }

            return(true);
        }