drawHeaderForPage(at:in:)
Draws the header of a page.
Declaration
func drawHeaderForPage(at pageIndex: Int, in headerRect: CGRect)Parameters
- pageIndex:
The index of the page on which to draw the header.
- headerRect:
The rectangle in which to draw the header content. This rectangle uses the coordinate system of the paper rectangle (Paperrect), with the origin of the coordinates at the top-left corner of the sheet.
Discussion
The default implementation of this method does nothing. The system doesn’t call this method if headerHeight isn’t a positive value. Override this method to draw the header of the specified page.
The system configures this method for drawing to the current graphics context according to UIGraphicsGetCurrentContext().