monotouch - Xamarin.iOS instantiate Storyboard Navigation controller in AppDelegate -
monotouch - Xamarin.iOS instantiate Storyboard Navigation controller in AppDelegate -
i might approaching wrong way, trying instantiate navigationcontroller created in storyboard appdelegates finishedlaunching method.
so, this:
public override bool finishedlaunching (uiapplication app, nsdictionary options) { window = new uiwindow (uiscreen.mainscreen.bounds); initialviewcontroller = storyboard.instantiateinitialviewcontroller () uiviewcontroller; window.rootviewcontroller = initialviewcontroller; window.makekeyandvisible (); homecoming true; }
but instead of viewcontroller, want instantiating navigationcontroller.
can done?
just set navigation controller root controller in storyboard. little arrow (segue) pointing first controller.
you can cast as uinavigationviewcontroller
if need to.
ios monotouch xamarin
Comments
Post a Comment