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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -