> On 15 Apr 2015, at 09:49, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: > > On iPad (portrait orientation) there is on the left a MasterView, overlapping > the DetailView. > (i.e. splitViewController.displayMode = > UISplitViewControllerDisplayModePrimaryOverlay) > > When I tap on the DetailView, the MasterView slides away. > (i.e. splitViewController.displayMode → > UISplitViewControllerDisplayModePrimaryHidden) > > How can I do this from code? > > The obvious way would be: > splitViewController.displayMode = > UISplitViewControllerDisplayModePrimaryHidden; > but displayMode is readonly. > > iOS 8.3 > > Gerriet. > >
Let’s see if the documentation contains any hints here .. documentation on UISplitViewController’s displayMode .. "To change the current display mode, change the value of the preferredDisplayMode property.” I’d probably try that _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com