Contents

drawContentForPage(at:in:)

Draws the content of a page.

Declaration

func drawContentForPage(at pageIndex: Int, in contentRect: CGRect)

Parameters

  • pageIndex:

    The index of the page on which to draw content.

  • contentRect:

    The area in which to draw content, in the coordinate system of the printable rectangle. This area is equal to Printablerect minus Headerheight and Footerheight.

Discussion

The default implementation of this method does nothing. Override this method to draw the content of the specified page.

The system configures this method for drawing to the current graphics context according to UIGraphicsGetCurrentContext().

See Also

Drawing a page