title: UISplitViewController iPad behaviour
body: <p>I'm making my first universal app, so far so good, but I have a problem with UISplitViewController on iPad.</p>
  
  <p>how can i make the UISplitViewController act same as on iPhone when it is in portrait mode?</p>
  
  <p>like in portrait mode show only master screen when i click on it, it navigate to the details screen, and when in landscape mode show both of them beside each other.</p>
  
  <p>what happens now , is that it shows the details screen only in portrait and show both of them in landscape mode.</p>
  
  <p>for iPhone i used this code in master view to solve this issue </p>
  
  <pre><code>func splitViewController(splitViewController: UISplitViewController, collapseSecondaryViewController secondaryViewController: UIViewController, ontoPrimaryViewController primaryViewController: UIViewController) -&gt; Bool {
  
      return true
  }
  </code></pre>
  
  <p>but this didn't work with iPad, i found another code on here but didn't work too.</p>
  
  <pre><code> func splitViewController(svc: UISplitViewController, willHideViewController aViewController: UIViewController, withBarButtonItem barButtonItem: UIBarButtonItem, forPopoverController pc: UIPopoverController) {
  
      self.navigationItem.leftBarButtonItem?.target?.performSelector((self.navigationItem.leftBarButtonItem?.action)!, withObject: self.navigationItem)
  }
  </code></pre>
  
  <p>other code maybe you need to know, i added those in viewDidLoad in master view controller </p>
  
  <pre><code>    self.splitViewController?.delegate = self
      self.splitViewController?.preferredDisplayMode = UISplitViewControllerDisplayMode.PrimaryOverlay
  
      self.splitViewController!.maximumPrimaryColumnWidth = splitViewController!.view.bounds.size.width;
      self.splitViewController!.preferredPrimaryColumnWidthFraction = 0.3
  </code></pre>
  
  <p>so please if anyone can help me find solution for this issue, I will be very thankful </p>