It’s easy to create a multi-level menu structure using nested RootElements in MonoTouch.Dialog but how would you go about having a specific UIViewController manage each root instead? The reason I want each RootElement to have it’s own UIViewController is because I want to be able to easily control things like background image and toggling the NavigationBar from screen to screen and doing so is trival from within a UIViewController.
It’s easy to create a multi-level menu structure using nested RootElements in MonoTouch.Dialog but
Share
I think you’re looking for this:
which let you create the
UIViewController(e.g. aDialogViewControllerthat you customized or a type that inherit from it).This will let you keep nesting your
Elementwhile giving most of the control over the view and it’s controller.UPDATE
Here’s how this can be used:
First declare your method that will create the UIViewController. The method signature must match
Func<RootElement, UIViewController>, e.g.Next create your root elements using:
The above will give you the same as:
except you’re now able to customize the
DialogViewControllerto your liking before returning it.