Instance Method

dismissAnimated:

Dismiss the picker.

Declaration

- (void)dismissAnimated:(BOOL)animated;

Parameters

animated

YES to animate the dismissal of the picker or NO 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 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

- presentAnimated:completionHandler:

Presents the picker from a view controller of your app.

- presentFromBarButtonItem:animated:completionHandler:

Present the picker in a popover that is anchored to the specified bar button item.

- presentFromRect:inView:animated:completionHandler:

Present the picker in a popover that is anchored to a rectangle in the specified view.