Search code examples
objective-cios7uiviewcontrolleruisplitviewcontrolleruipopovercontroller

How to programmatically show master view controller on splitViewController when in Portrait orientation?


I have a UISplitViewController where I need to show the master view controller in both landscape and portrait, currently the user has to either swipe or press a bar button item to show the master view controller but I need it to be visible on page load.

Any Ideas?


Solution

  • Set the split view controllers preferredDisplayMode property to UISplitViewControllerDisplayModeSideBySide