Contents

present(animated:completionHandler:)

Presents the iPhone printing user interface in a sheet, optionally animating it to slide up from the bottom of the screen.

Declaration

func present(animated: Bool, completionHandler completion: UIPrintInteractionController.CompletionHandler? = nil) -> Bool

Parameters

  • animated:

    True to animate the display of the sheet, False to display the sheet immediately.

  • completion:

    A block of type Completionhandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.

Discussion

It is valid to call this method for applications on iPhone and iPod touch devices. Calling this method on an iPad with animated set to true causes the printing options view to animate from the window frame.

If you call this method when the printing options are already displayed, UIPrintInteractionController hides the printing-options sheet. You must call the method again to display the options.

See Also

Presenting the printing user interface