<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSError/localizedRecoveryOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSError(py)localizedRecoveryOptions"
  },
  "title" : "localizedRecoveryOptions"
}
-->

# localizedRecoveryOptions

An array containing the localized titles of buttons appropriate for displaying in an alert panel.

```
var localizedRecoveryOptions: [String]? { get }
```

## Discussion

The object in the user info dictionary for the key [`NSLocalizedRecoveryOptionsErrorKey`](/documentation/Foundation/NSLocalizedRecoveryOptionsErrorKey). If the user info dictionary doesn’t contain a value for [`NSLocalizedRecoveryOptionsErrorKey`](/documentation/Foundation/NSLocalizedRecoveryOptionsErrorKey), this property is `nil`.

The first string is the title of the right-most and default button, the second the one to the left of that, and so on. The recovery options should be appropriate for the  [`localizedRecoverySuggestion`](/documentation/Foundation/NSError/localizedRecoverySuggestion) property. If the user info dictionary doesn’t contain a value for [`NSLocalizedRecoveryOptionsErrorKey`](/documentation/Foundation/NSLocalizedRecoveryOptionsErrorKey), only an OK button is displayed.

---

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)