A view controller that displays the standard interface for selecting a printer.


class UIPrinterPickerController : NSObject


You can use a printer picker controller to display a list of printers to the user prior to printing a document, photo, or other content. Printer pickers display all pickers normally but you can filter out printers by assigning an appropriate delegate object to the picker before displaying it.

A printer picker controller coordinates the presentation and dismissal of its interface with its associated delegate object. The delegate object is an object that you provide and that conforms to the UIPrinterPickerControllerDelegate protocol. When the user selects a printer, the picker also notifies the delegate of the selection.

A printer picker controller is not a view controller, so you do not present it the way you do other view controllers. You present the picker using one of the presentation methods of this class. Those methods work with the picker’s delegate object to determine the most appropriate way to present the picker. If the delegate implements the printerPickerControllerParentViewController(_:) method, the picker presents itself using the view controller returned by that method. Some presentation methods may present the picker using a popover instead.

For more information about the picker delegate methods, see UIPrinterPickerControllerDelegate.


Creating a Picker Controller Object

init(initiallySelectedPrinter: UIPrinter?)

Creates and returns a printer picker with an initially selected printer object.

Managing the Printer Picker Interface

var delegate: UIPrinterPickerControllerDelegate?

The delegate for the printer picker controller.

protocol UIPrinterPickerControllerDelegate

A set of methods for managing the presentation and dismissal of a printer picker interface.

Presenting and Dismissing the Picker

Getting the Selected Printer

var selectedPrinter: UIPrinter?

The selected printer.


typealias UIPrinterPickerController.CompletionHandler

The completion handler to execute when dismissing a printer picker controller.


Inherits From

Conforms To