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

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -