---
title: "titleColor(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uibutton/titlecolor(for:)"
---

# titleColor(for:)

Returns the title color used for a state.

## Declaration

```swift
func titleColor(for state: UIControl.State) -> UIColor?
```

## Parameters

- `state`: The state that uses the title color. The possible values are described in doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct.

## Return Value

Return Value The color of the title for the specified state.

## See Also

### Managing the title

- [titleLabel](uikit/uibutton/titlelabel.md)
- [title(for:)](uikit/uibutton/title(for:).md)
- [setTitle(_:for:)](uikit/uibutton/settitle(_:for:).md)
- [attributedTitle(for:)](uikit/uibutton/attributedtitle(for:).md)
- [setAttributedTitle(_:for:)](uikit/uibutton/setattributedtitle(_:for:).md)
- [setTitleColor(_:for:)](uikit/uibutton/settitlecolor(_:for:).md)
- [titleShadowColor(for:)](uikit/uibutton/titleshadowcolor(for:).md)
- [setTitleShadowColor(_:for:)](uikit/uibutton/settitleshadowcolor(_:for:).md)
