Adds a print formatter to the page renderer starting at the specified page.
SDKs
- iOS 4.2+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
func addPrintFormatter(_ formatter: UIPrint Formatter, startingAtPageAt pageIndex: Int)
Parameters
formatter
The
UIPrint
object to add to the page renderer. A print formatter can be an instance ofFormatter UISimple
,Text Print Formatter UIMarkup
, orText Print Formatter UIView
.Print Formatter pageIndex
The index identifying the first page with which the print formatter should be associated with. This value overrides the
start
property of the print formatter.Page
Discussion
You can dissociate a print formatter from its page renderer by calling the remove
method on the print formatter.