Asks the delegate whether the app’s saved state information should be restored.
- iOS 6.0–13.2Deprecated
- Mac Catalyst 13.0+
- tvOS 9.0–13.2Deprecated
Your singleton app object.
The keyed archiver containing the app’s previously saved state information.
true if the app’s state should be restored or
false if it should not.
Apps must implement this method and the
application(_: method for state preservation to occur. In addition, your implementation of this method must return
true each time UIKit tries to restore the state of your app. You can use the information in the provided coder object to decide whether or not to proceed with state restoration. For example, you might return
false if the data in the coder is from a different version of your app and cannot be effectively restored to the current version.