Instance Method

contentRectForBounds:

Returns the rectangle in which the receiver draws its entire content.

Declaration

- (CGRect)contentRectForBounds:(CGRect)bounds;

Parameters

bounds

The bounding rectangle for the receiver.

Return Value

The rectangle in which the receiver draws its entire content.

Discussion

The content rectangle is the area needed to display the image and title including any padding and adjustments for alignment and other settings.

See Also

Getting Dimensions

- backgroundRectForBounds:

Returns the rectangle in which the receiver draws its background.

- titleRectForContentRect:

Returns the rectangle in which the receiver draws its title.

- imageRectForContentRect:

Returns the rectangle in which the receiver draws its image.