The problem I have with the SplitView is the navigation bar… it’s missing. I use a tablet presenter, like in the MVVMCross examples. When trying to add a navigation bar item, like shown in the CustomerManagement example for instance, it doesn’t show.
I think it has something to do with the UINavigation controller missing, but I can’t figure out how to implement it using a tablet presenter.
My views are constructed using Dialog, and my presenter is using the MvxBaseTouchViewPresenter.
Can anyone tell me how to make use of the navigation bar while using splitview and dialog?
Thanks in advance!
I’m not 100% clear on your UI from your description – if I’ve got the wrong idea, then some pictures might help.
However… basically I believe that any UI you can achieve in plain MonoTouch you should also be able to achieve in MvvmCross.
It looks like you’ve already worked out quite a lot of this, but just to recap:
In your example it sounds like you maybe want to specialise one of your split views so that it contains a UINavigationController – and you then want your Presenter to pass your new view to that UINavigationController for pushing.
This is just C# code – and it’s just in your UI project – feel free to write it just like you would ‘normal MonoTouch’.
One example of an ‘advanced’ presenter is the conference sample – see how it delegates the show action to the Tab Bar – https://github.com/slodge/MvvmCross/blob/vnext/Sample%20-%20CirriousConference/Cirrious.Conference.UI.Touch/ConferencePresenter.cs