sizeForNumberOfPages: Returns the size the receiver’s bounds should be to accommodate the given number of pages.- (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.
Returns the size the receiver’s bounds should be to accommodate the given number of pages.- (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.
不是刚刚有人发过了吗?怎么又开一贴?
比如3页,你可以是CGSizeMake(20*3,20);
不信,你用IB试试