Search code examples
iosuisplitviewcontroller

How can I dismiss the master view from a UISplitViewController in iOS 5.1


I am trying to hide the master view controller when a selection has been made in the table view. I've looked all over stackoverflow and can only find solutions that used to work prior to iOS 5.1

I've tried to dismissPopoverAnimated or dismissModalViewControllerAnimated, but none of those seem to work.

There has got to be a way to hide the masterview controller once a section has been made.

Any help would be really appreciated. Thanks.


Solution

  • you have to dismiss your popovercontroller. see this answer, there is a code example:
    https://stackoverflow.com/a/5829368/558150