How to close the MasterView in UISplitView?

Hi everyone,


I have an older app that I've been re-writing the GUI to be adaptive. I'ts nice to see all new features iOS enables today, I have more features now in much less code than before.

But I've stumbled on one thing here.

I use a UISplitView, much like the Mail interface, with a list of documents in the MasterView and after you select one it displays in full in the DetailView.

Now on an iPad in portrait mode I have some grieves with the UI:

When the SplitView is initially presented the MasterView is hidden.

  • I would love to be able to pop-out the MasterView so the user know that they should pick a document to view.
  • My workaround is to auto-load the first document in the list even if the user don't want that so they don't stare at a blank screen.

  • But my main problem is that I want to auto-close the MasterView when the user have selected a document, like Mail does. Now my users have to manually close the MasterView that are obstructing half of the document they wanted to see.

    Previously the were a way to do this using methods in UISplitViewControllerDelegate and UIPopoverController but these are now deprecated.

I see a lot of people asking for ways to control the visibility of the pop-over MasterController and I can't find a documented way to do this.

Mail obviously are doing this so how can I implement something similar?

How to close the MasterView in UISplitView?
 
 
Q