Dismiss the picker.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
func dismiss(animated: Bool)
Parameters
animated
true
to animate the dismissal of the picker orfalse
to remove it without animations.
Discussion
This method dismisses a picker that you previously presented. When using this method to dismiss a picker, the picker does not call the printer
or printer
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.