UISplitViewController.DisplayMode
Constants that describe the possible arrangements for a split view interface.
Declaration
enum DisplayModeOverview
A split view controller’s display mode controls the visual arrangement of its child view controllers. You set a preferred display mode by using the preferredDisplayMode property, and the split view controller updates itself and reflects the actual display mode in the displayMode property.
Display modes apply to a split view controller in an expanded arrangement. When the split view interface is collapsed — when isCollapsed is true — the display mode has no impact on the appearance of the split view controller interface.
A split view controller’s split behavior (splitBehavior) affects its possible display modes. For more information, see UISplitViewController.SplitBehavior.
Split Behavior | Possible Display Modes |
|---|---|
Tile | Secondaryonly [Image] Onebesidesecondary [Image] Twobesidesecondary |
Overlay | Secondaryonly [Image] Oneoversecondary [Image] Twooversecondary |
Displace | Secondaryonly [Image] Onebesidesecondary [Image] Twodisplacesecondary |
There are several ways for user interaction to change the current display mode. Based on the type of user interaction (gesture or button tap), the display mode can transition between a set of predetermined states.
[Image]
Topics
Constants
UISplitViewController.DisplayMode.automaticUISplitViewController.DisplayMode.secondaryOnlyUISplitViewController.DisplayMode.oneBesideSecondaryUISplitViewController.DisplayMode.oneOverSecondaryUISplitViewController.DisplayMode.twoBesideSecondaryUISplitViewController.DisplayMode.twoOverSecondaryUISplitViewController.DisplayMode.twoDisplaceSecondary