Instance Method

splitViewController(_:willShow:invalidating:)

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

Declaration

optional func splitViewController(_ svc: UISplitViewController, willShow aViewController: UIViewController, invalidating barButtonItem: UIBarButtonItem)

Parameters

svc

The split view controller that owns the specified view controller.

aViewController

The view controller being hidden.

button

The button used to display the view controller while it was hidden.

Discussion

When the view controller rotates from a portrait to landscape orientation, it shows its hidden view controller once more. If you added the specified button to your toolbar to facilitate the display of the hidden view controller in a popover, you must implement this method and use it to remove that button.

See Also

Deprecated Methods

func splitViewController(UISplitViewController, shouldHide: UIViewController, in: UIInterfaceOrientation) -> Bool

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

Deprecated
func splitViewController(UISplitViewController, willHide: UIViewController, with: UIBarButtonItem, for: UIPopoverController)

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

Deprecated
func splitViewController(UISplitViewController, popoverController: UIPopoverController, willPresent: UIViewController)

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

Deprecated