Instance Method

printerPickerControllerParentViewController:

Asks the delegate to provide the view controller to act as the parent of the printer picker.

Declaration

- (UIViewController *)printerPickerControllerParentViewController:(UIPrinterPickerController *)printerPickerController;

Parameters

printerPickerController

The printer picker controller object that made the request.

Return Value

A view controller from your app’s interface.

Discussion

Use this method when you want the printer picker controller to be presented from a specific view controller in your app’s interface. When you specify a navigation controller as the parent, UIKit pushes the printer picker onto your navigation stack. For other types of view controllers, UIKit presents the picker interface from the view controller you specify.

If you do not implement this method or your implementation returns nil, UIKit presents the printer picker from the root view controller of your app’s main window.

See Also

Responding to Printer Picker Events

- printerPickerControllerWillPresent:

Tells the delegate that the printer picker is about to be displayed.

- printerPickerControllerDidPresent:

Tells the delegate that the printer picker was displayed and is now visible.

- printerPickerControllerWillDismiss:

Tells the delegate that the printer picker is about to be dismissed.

- printerPickerControllerDidDismiss:

Tells the delegate that the printer picker was dismissed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software