Instance Method

imageRectForContentRect:

Returns the rectangle in which the receiver draws its image.

Declaration

- (CGRect)imageRectForContentRect:(CGRect)contentRect;

Parameters

contentRect

The content rectangle for the receiver.

Return Value

The rectangle in which the receiver draws its image.

See Also

Getting Dimensions

- backgroundRectForBounds:

Returns the rectangle in which the receiver draws its background.

- contentRectForBounds:

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

- titleRectForContentRect:

Returns the rectangle in which the receiver draws its title.