Instance Property

currentTitle

The current title that is displayed on the button.

Declaration

@property(nonatomic, readonly, strong) NSString *currentTitle;

Discussion

The value for this property is set automatically whenever the button state changes. For states that do not have a custom title string associated with them, this method returns the title that is currently displayed, which is typically the one associated with the UIControlStateNormal state. The value may be nil.

See Also

Getting the Current State

buttonType

The button type.

currentAttributedTitle

The current styled title that is displayed on the button.

currentTitleColor

The color used to display the title.

currentTitleShadowColor

The color of the title’s shadow.

currentImage

The current image displayed on the button.

currentBackgroundImage

The current background image displayed on the button.

imageView

The button’s image view.