A printing user interface that manages the printing of documents, images, and other printable content in iOS.
- iOS 4.2+
UIPrint is the central class for printing in iOS. The shared instance of it represents a print job. A print job includes the content to be printed and information and options related to its printing, such as output type, job name, paper size, and orientation.
UIPrint has four mutually exclusive properties for giving it the content to be printed:
printingtakes a single print-ready object.
printingtakes an array of print-ready objects.
Items Formatter Page Renderer
shows property is set to
true, the number of pages is more than 1, and you assign an object to any of these properties except for the
printing property, the printing options include a control that allows users to select a page range.
When users tap a print button on the application’s user interface, a controller object of the application should respond to the action message by obtaining the shared instance of
UIPrint and preparing it for the print job. When the application calls one of the
present... methods (for example,
UIPrint displays a view containing printing options. This interface is simple, allowing users to select a printer, specify the number of copies and possibly a range of pages, and choose single-sided or double-sided printing (if the printer supports duplex printing). When users make their selections and tap Print, the print job begins.