Instance Method


Dismiss the picker.


func dismiss(animated: Bool)



true to animate the dismissal of the picker or false to remove it without animations.


This method dismisses a picker that you previously presented. When using this method to dismiss a picker, the picker does not call the printerPickerControllerWillDismiss(_:) or printerPickerControllerDidDismiss(_:) methods of your delegate object.

User interactions with the picker can also dismiss the picker automatically. For example, if the user selects a printer or cancels the picker, the picker dismisses itself automatically. Use this method to dismiss a picker programmatically in response to other events in your app.

See Also

Presenting and Dismissing the Picker