Implemented to attempt a recovery from an error noted in an application-modal dialog.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
Parameters
error
An
NSError
object that describes the error, including error recovery options.recoveryOptionIndex
The index of the user selected recovery option in
error
's localized recovery array.
Return Value
true
if the error recovery was completed successfully, false
otherwise.
Discussion
Invoked when an error alert is been presented to the user in an application-modal dialog, and the user has selected an error recovery option specified by error
.