Instance Method

drawFooterForPage(at:in:)

Overridden to draw the footer of the given page.

Declaration

func drawFooterForPage(at pageIndex: Int, in footerRect: CGRect)

Parameters

index

The index of the page in which to draw the footer content.

footerRect

The rectangle in which the footer content should be drawn. It is specified in the coordinate system of the paper rectangle (paperRect); that is, the origin of coordinates is at the top-left corner of the sheet.

Discussion

The default implementation of this method does nothing. It is not called if footerHeight is not a positive value. The method is set up for drawing to the current graphics context (as returned by UIGraphicsGetCurrentContext()).

See Also

Drawing a Page

func drawPage(at: Int, in: CGRect)

Overridden to draw a given page of content for the printer.

func drawHeaderForPage(at: Int, in: CGRect)

Overridden to draw the header of the given page.

func drawContentForPage(at: Int, in: CGRect)

Overridden to draw the content of the given page.

func drawPrintFormatter(UIPrintFormatter, forPageAt: Int)

Overridden to add custom drawing to the drawing provided by a given print formatter for a page.