Reputation: 10398
I am attempting my first iPad app after many iPhone apps. When I load up the template for Master-Detail Application for iPad, the MasterView list slides in from the left when you press the Bar Button ike this:
yet i've seen loads of images of this being a popup list like this:
What needs to be changed to make the standard template use the popup view?
Upvotes: 1
Views: 373
Reputation: 421
From the Apple documentation:
UISplitViewControllerDisplayModePrimaryOverlay
The primary view controller is layered on top of the secondary view controller, leaving the secondary view controller partially visible.
Available in iOS 8.0 and later.
To get a popup you have to set the preferredDisplayMode
property on your UISplitViewController
to UISplitViewControllerDisplayModePrimaryOverlay
.
Upvotes: 1
Reputation: 1376
The master view used to be a popup. It was changed (in iOS 5.1, I believe) to slide in from the left. That's just how it works now. To get a popup you'd have to "roll your own".
Upvotes: 2