<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAlertViewDelegate/alertViewShouldEnableFirstOtherButton(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIAlertViewDelegate(im)alertViewShouldEnableFirstOtherButton:"
  },
  "title" : "alertViewShouldEnableFirstOtherButton(_:)"
}
-->

# alertViewShouldEnableFirstOtherButton(_:)

Sent to the delegate to determine whether the first non-cancel button in the alert should be enabled.

```
optional func alertViewShouldEnableFirstOtherButton(_ alertView: UIAlertView) -> Bool
```

## Parameters

`alertView`

The alert view that is being configured.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the button should be enabled, no if the button should be disabled.

---

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)