Instance Method

titleRect(forContentRect:)

Returns the rectangle in which the receiver draws its title.

Declaration

func titleRect(forContentRect contentRect: CGRect) -> CGRect

Parameters

contentRect

The content rectangle for the receiver.

Return Value

The rectangle in which the receiver draws its title.

See Also

Getting Dimensions

func backgroundRect(forBounds: CGRect) -> CGRect

Returns the rectangle in which the receiver draws its background.

func contentRect(forBounds: CGRect) -> CGRect

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

func imageRect(forContentRect: CGRect) -> CGRect

Returns the rectangle in which the receiver draws its image.