//======================================================================== //======================================================================== public override bool FinishedLaunching(UIApplication app, NSDictionary options) { //---- create our window this._window = new UIWindow(UIScreen.MainScreen.Bounds); this._window.MakeKeyAndVisible(); //---- instantiate our main navigatin controller and add it's view to the window this._mainNavController = new UINavigationController(); this._iPhoneHome = new Example_BackgroundExecution.Screens.iPhone.HomeScreen_iPhone(); this._mainNavController.PushViewController(this._iPhoneHome, false); break; this._window.AddSubview(this._mainNavController.View); //---- how to check if multi-tasking is supported if (UIDevice.CurrentDevice.IsMultitaskingSupported) { // code here to change your app's behavior } //---- return(true); }
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 Example_BackgroundExecution.Screens.iPhone.HomeScreen_iPhone (); 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; }