Instance Method

sizeForNumberOfPages:

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

Declaration

- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount;

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.