---
title: "printerPickerControllerParentViewController(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprinterpickercontrollerdelegate/printerpickercontrollerparentviewcontroller(_:)"
---

# printerPickerControllerParentViewController(_:)

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

## Declaration

```swift
optional func printerPickerControllerParentViewController(_ printerPickerController: UIPrinterPickerController) -> UIViewController?
```

## Parameters

- `printerPickerController`: The printer picker controller object that made the request.

## Return Value

Return Value A view controller from your app’s interface.

## Discussion

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(_:)](uikit/uiprinterpickercontrollerdelegate/printerpickercontrollerwillpresent(_:).md)
- [printerPickerControllerDidPresent(_:)](uikit/uiprinterpickercontrollerdelegate/printerpickercontrollerdidpresent(_:).md)
- [printerPickerControllerWillDismiss(_:)](uikit/uiprinterpickercontrollerdelegate/printerpickercontrollerwilldismiss(_:).md)
- [printerPickerControllerDidDismiss(_:)](uikit/uiprinterpickercontrollerdelegate/printerpickercontrollerdiddismiss(_:).md)
