splitViewController(_:popoverController:willPresent:)
Tells the delegate that the hidden view controller is about to be displayed in a popover.
Declaration
optional func splitViewController(_ svc: UISplitViewController, popoverController pc: UIPopoverController, willPresent aViewController: UIViewController)Parameters
- svc:
The split view controller that owns the hidden view controller.
- pc:
The popover controller that is about to display the view controller.
- aViewController:
The view controller to be displayed in the popover.
Discussion
The toolbar button you add to your user interface facilitates the display of the hidden view controller in response to user taps. When the user taps that button, the split view controller calls this method. You can use this method to perform any additional steps prior to displaying the currently hidden view controller.