Instance Method

collapseSecondaryViewController:forSplitViewController:

Called when a split view controller transitions to a compact-width size class.

Declaration

- (void)collapseSecondaryViewController:(UIViewController *)secondaryViewController forSplitViewController:(UISplitViewController *)splitViewController;

Parameters

secondaryViewController

The secondary view controller associated with the split view controller.

splitViewController

The current split view controller.

Discussion

This method provides default behavior when you do not overwrite the splitViewController:collapseSecondaryViewController:ontoPrimaryViewController: method. The primary view controller associated with the split view controller is displayed.

See Also

Adapting to Environment Changes

- separateSecondaryViewControllerForSplitViewController:

Called when a split view controller transitions to a regular-width size class.