There are many answers to the complementary question, which is how to prevent a transition to PrimaryOverLay
on a from Regular
to Compact
interface change, eg use
func splitViewController(splitViewController: UISplitViewController, collapseSecondaryViewController secondaryViewController: UIViewController, ontoPrimaryViewController primaryViewController: UIViewController) -> Bool
In my case, I have an iPhone 6+ with the detail view showing in portrait. When I rotate the device to horizontal (Compact
to Regular
), I want the primary view to stay hidden. I've tried setting the preferredDisplayMode
to .PrimaryHidden
in many places, but it has no apparent affect. Googling has turned up nothing.