Darren
Darren

Reputation: 10398

Split view MasterView not showing in a popup but sliding in

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:

slide view

yet i've seen loads of images of this being a popup list like this:

popup view

What needs to be changed to make the standard template use the popup view?

Upvotes: 1

Views: 373

Answers (2)

Jan Bühler
Jan Bühler

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

Charlie Price
Charlie Price

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

Related Questions