---
title: firstOtherButtonIndex
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uialertview/firstotherbuttonindex
---

# firstOtherButtonIndex

The index of the first other button.

## Declaration

```swift
var firstOtherButtonIndex: Int { get }
```

## Discussion

Discussion The button indices start at 0. If -1, then the index is not set. This property is ignored if there are no other buttons. The default value is -1.

## See Also

### Configuring buttons

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