Returns the title associated with the specified state.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
Parameters
state
The state that uses the title. The possible values are described in
UIControl
..State
Return Value
The title for the specified state. If no title has been set for the specific state, this method returns the title associated with the normal
state.