<!--
{
  "availability" : [
    "iOS: 2.0.0 - 8.3.0",
    "iPadOS: 2.0.0 - 8.3.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActionSheet/buttonTitle(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIActionSheet(im)buttonTitleAtIndex:"
  },
  "title" : "buttonTitle(at:)"
}
-->

# buttonTitle(at:)

Returns the title of the button at the specified index.

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

## Parameters

`buttonIndex`

The index of the button. The button indices start at `0`.

## Return Value

The title of the button specified by index `buttonIndex`.

## See Also

[`-  showInView:`](/documentation/UIKit/UIActionSheet/show(in:))

Displays an action sheet that originates from the specified view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)