Instance Method

separateSecondaryViewControllerForSplitViewController:

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

Declaration

- (UIViewController *)separateSecondaryViewControllerForSplitViewController:(UISplitViewController *)splitViewController;

Parameters

splitViewController

The current split view controller.

Return Value

The designated secondary view controller for the split view controller.

Discussion

This method provides default behavior when you do not overwrite the splitViewController:separateSecondaryViewControllerFromPrimaryViewController: method. The previous secondary view controller is returned.

See Also

Adapting to Environment Changes

- collapseSecondaryViewController:forSplitViewController:

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