title: Hiding the master view controller with UISplitViewController in iOS8
body: <p>I have an iOS7 application, which was based on the Xcode master-detail template, that I am porting to iOS8. One area that has changed a lot is the <code>UISplitViewController</code>.</p>
  
  <p>When in portrait mode, if the user taps on the detail view controller, the master view controller is dismissed:</p>
  
  <p><img src="https://i.stack.imgur.com/mb08R.png" alt="enter image description here"></p>
  
  <p>I would also like to be able to programmatically hide the master view controller if the user taps on a row.</p>
  
  <p>In iOS 7, the master view controller was displayed as a pop-over, and could be hidden as follows:</p>
  
  <pre><code>[self.masterPopoverController dismissPopoverAnimated:YES];
  </code></pre>
  
  <p>With iOS 8, the master is no longer a popover, so the above technique will not work.</p>
  
  <p>I've tried to dismiss the master view controller:</p>
  
  <pre><code>self.dismissViewControllerAnimated(true, completion: nil)
  </code></pre>
  
  <p>Or tell the split view controller to display the details view controller:</p>
  
  <pre><code>self.splitViewController?.showDetailViewController(bookViewController!, sender: self)
  </code></pre>
  
  <p>But nothing has worked so far. Any ideas?</p>