Instance Property

alternateTitle

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

Declaration

var alternateTitle: String { get set }

Discussion

The value of this property is the string that appears on the button when it's in its alternate state, or the empty string if the button doesn’t display an alternate title. Note that some button types don’t display an alternate title. By default, a button’s alternate title is “Button.”

See Also

Setting Titles

var attributedAlternateTitle: NSAttributedString

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

var attributedTitle: NSAttributedString

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

var title: String!

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