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.
- barButtonItem:
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.