I have a SplitViewController based iPad app.
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.
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.
However, I don't want this toolbar button to show up when the app is in landscape mode.
What is the smartest, easiest way to do this? Again, all pretty standard, so I assume I'm just missing something.
Thanks!
EDIT:
I'm not sure if it makes a difference, but my SplitViewControllerDelegate is the MasterViewController
EDIT #2:
I almost managed to do what I wanted - all is working but the way the popover is displayed.
Some images to visualize the app:
Landscape Mode:
Portrait Mode:
Portrait Mode after clicking toolbar button:
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: