---
title: "buttonTitle(at:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uialertview/buttontitle(at:)"
---

# buttonTitle(at:)

Returns the title of the button at the given index.

## Declaration

```swift
func buttonTitle(at buttonIndex: Int) -> String?
```

## Parameters

- `buttonIndex`: The index of the button. The button indices start at 0.

## Return Value

Return Value The title of the button specified by index buttonIndex.

## See Also

### Configuring buttons

- [addButton(withTitle:)](uikit/uialertview/addbutton(withtitle:).md)
- [numberOfButtons](uikit/uialertview/numberofbuttons.md)
- [textField(at:)](uikit/uialertview/textfield(at:).md)
- [cancelButtonIndex](uikit/uialertview/cancelbuttonindex.md)
- [firstOtherButtonIndex](uikit/uialertview/firstotherbuttonindex.md)
