Instance Property

currentAttributedTitle

The current styled title that is displayed on the button.

Declaration

var currentAttributedTitle: NSAttributedString? { get }

Discussion

The value for this property reflects the title associated with the control’s current state. For states that do not have a custom title string associated with them, this method returns the attributed title that is currently displayed, which is typically the one associated with the normal state.

See Also

Getting the Current State

var currentTitle: String?

The current title that is displayed on the button.

var currentTitleColor: UIColor

The color used to display the title.

var currentTitleShadowColor: UIColor?

The color of the title’s shadow.

var currentImage: UIImage?

The current image displayed on the button.

var currentBackgroundImage: UIImage?

The current background image displayed on the button.

var imageView: UIImageView?

The button’s image view.