Contents

title(for:)

Returns the title associated with the specified state.

Declaration

func title(for state: UIControl.State) -> String?

Parameters

  • state:

    The state that uses the title. The possible values are described in State Swift.struct.

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.

See Also

Managing the title