Protocol

UISplit​View​Controller​Delegate

The UISplit​View​Controller​Delegate protocol defines methods that allow you to manage changes to a split view interface. Use the methods of this protocol to respond to changes in the current display mode and to the current interface orientation. When the split view interface collapses and expands, or when a new view controller is added to the interface, you can also use these methods to configure the child view controllers appropriately.

Overview

For more information about the UISplit​View​Controller class, see UISplit​View​Controller.

Symbols

Responding to Display Mode Changes

func split​View​Controller(UISplit​View​Controller, will​Change​To:​ UISplit​View​Controller​Display​Mode)

Tells the delegate that the display mode for the split view controller is about to change.

func target​Display​Mode​For​Action(in:​ UISplit​View​Controller)

Asks the delegate to provide the display mode to apply when a split view controller action occurs.

Overriding the Interface Orientations

func split​View​Controller​Preferred​Interface​Orientation​For​Presentation(UISplit​View​Controller)

Asks the delegate for the orientation to use when presenting the split view controller.

func split​View​Controller​Supported​Interface​Orientations(UISplit​View​Controller)

Asks the delegate to specify the interface orientations that the split view controller supports.

Collapsing and Expanding the Interface

func primary​View​Controller(for​Collapsing:​ UISplit​View​Controller)

Asks the delegate to provide the single view controller to display after the split view interface collapses.

func split​View​Controller(UISplit​View​Controller, collapse​Secondary:​ UIView​Controller, onto:​ UIView​Controller)

Asks the delegate to adjust the primary view controller and to incorporate the secondary view controller into the collapsed interface.

func primary​View​Controller(for​Expanding:​ UISplit​View​Controller)

Asks the delegate to provide the view controller to display in the primary position when the split view interface expands.

func split​View​Controller(UISplit​View​Controller, separate​Secondary​From:​ UIView​Controller)

Asks the delegate to provide the new secondary view controller for the split view interface.

Overriding the Presentation Behavior

func split​View​Controller(UISplit​View​Controller, show:​ UIView​Controller, sender:​ Any?)

Asks the delegate if it wants to do the work of displaying a view controller in the primary position of the split view interface.

func split​View​Controller(UISplit​View​Controller, show​Detail:​ UIView​Controller, sender:​ Any?)

Asks the delegate if it wants to do the work of displaying a view controller in the secondary position of the split view interface.

Deprecated Methods

func split​View​Controller(UISplit​View​Controller, should​Hide:​ UIView​Controller, in:​ UIInterface​Orientation)

Asks the delegate whether the first view controller should be hidden for the specified orientation.

Deprecated
func split​View​Controller(UISplit​View​Controller, will​Show:​ UIView​Controller, invalidating:​ UIBar​Button​Item)

Tells the delegate that the specified view controller is about to be shown again.

Deprecated
func split​View​Controller(UISplit​View​Controller, popover​Controller:​ UIPopover​Controller, will​Present:​ UIView​Controller)

Tells the delegate that the hidden view controller is about to be displayed in a popover.

Deprecated