title: iPad splitViewController popover master view
body: <p>I have a SplitViewController based iPad app.</p>
  
  <p>The app is pretty standard - the DetailsVC is always displayed, and the masterVC is displayed only on landscape mode. The masterVC is a navigationController containing a view of mine, and the DetailVC is a vc that has a toolbar. All standard.</p>
  
  <p>I want, when the app is in portrait mode, to add a button to the portrait toolbar, that, when clicked, pops up the MasterVC using Popover.</p>
  
  <p>However, I don't want this toolbar button to show up when the app is in landscape mode.</p>
  
  <p>What is the smartest, easiest way to do this? Again, all pretty standard, so I assume I'm just missing something.</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I'm not sure if it makes a difference, but my SplitViewControllerDelegate is the MasterViewController</p>
  
  <p><strong>EDIT #2:</strong></p>
  
  <p>I almost managed to do what I wanted - all is working but the way the popover is displayed.</p>
  
  <p>Some images to visualize the app:</p>
  
  <p><strong>Landscape Mode:</strong>
  <img src="https://i.stack.imgur.com/yG6Vz.png" alt="enter image description here"></p>
  
  <p><strong>Portrait Mode:</strong>
  <img src="https://i.stack.imgur.com/7Zizp.png" alt="enter image description here"></p>
  
  <p><strong>Portrait Mode after clicking toolbar button:</strong>
  <img src="https://i.stack.imgur.com/lDEbh.png" alt="enter image description here"></p>
  
  <p>This is almost the way I want it - I just want the Menu to show as a popover of the toolbar button instead of the way it does. Image to visualize the way I want it to show:</p>
  
  <p><img src="https://i.stack.imgur.com/0Srlp.jpg" alt="enter image description here"></p>