Contents

size(forNumberOfPages:)

Returns the size the receiver’s bounds should be to accommodate the given number of pages.

Declaration

func size(forNumberOfPages pageCount: Int) -> CGSize

Parameters

  • pageCount:

    The number of pages to fit in the receiver’s bounds.

Return Value

The minimum size required to display dots for the page count.

Discussion

Subclasses that customize the appearance of the page control can use this method to resize the page control when the page count changes.