title: UISplitViewController - dismiss / pop Detail View Controller in code in collapsed mode
body: <p>Since iOS8 we're allowed to use <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISplitViewController_class/index.html#//apple_ref/occ/instp/UISplitViewController/displayMode" rel="noreferrer">UISplitViewController</a> on both compact and regular devices. This is great because I don't have to create two different storyboard for iPhone and iPad, but there's one problem that I'm stuck with. </p>
  
  <p>If the split view controller is on iPad(if the collapsed property is NO), I can simply call this to show MasterVC on the left side.</p>
  
  <pre><code>self.splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModePrimaryOverlay;
  [self.splitViewController.displayModeButtonItem action];
  </code></pre>
  
  <p>But if it's on iPhone(if the collapsed property is YES), the displayMode is ignored, and doesn't do anything. </p>
  
  <p>I cannot pop DetailVC with <code>popToRootViewControllerAnimated</code> because DetailVC has it's own navigation controller.</p>
  
  <p>How does Apple expect us to show MasterVC(dismiss DetailVC) in code in collapsed mode if there isn't any method like <code>dismissViewControllerAnimated:completion:</code> for view controller that was presented with showDetail? Your help will be appreciated. Thanks</p>