Instance Property

attributedTitle

The title displayed by the button when it’s in its normal state as an attributed string.

Declaration

@property(copy) NSAttributedString *attributedTitle;

Discussion

The value of this property is the attributes string that appears on the button when it’s in its normal state, or an empty attributed string if the button doesn’t display a title. A button’s title is always displayed if the button doesn’t use its alternate contents for highlighting or displaying the alternate state. By default, a button’s title is “Button.” Setting this property redraws the button if necessary.

Graphics attributes configured for the cell (such as backgroundColor, alignment, font, and so on) are overridden when corresponding properties are set for the attributed string.

See Also

Setting Titles

- alternateMnemonic

Returns the character in the alternate title that’s marked as the “keyboard mnemonic.”

Deprecated
- alternateMnemonicLocation

Returns an unsigned integer indicating the character in the alternate title that’s marked as the “keyboard mnemonic.”

Deprecated
alternateTitle

The string displayed by the button when it’s in its alternate state.

attributedAlternateTitle

The title displayed by the button when it’s in its alternate state, as an attributed string.

- setAlternateMnemonicLocation:

Sets the character in the alternate title that should be the “keyboard mnemonic.”

Deprecated
- setAlternateTitleWithMnemonic:

Sets the title the button displays when it’s in its alternate state to the given string with an embedded mnemonic.

Deprecated
- setFont:

Sets the font used to display the button's title and alternate title.

- setTitleWithMnemonic:

Sets the title the button displays when it’s in its normal state to the given string with an embedded mnemonic.

Deprecated
title

The title displayed on the button when it’s in its normal state.