Decodes and restores state-related information for the view controller.
- iOS 6.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The coder object to use to decode the state of the view.
Do not call this method directly. The system calls this method during the state restoration process so that you can restore your view controller to its previous state.
If your app supports state restoration, override this method for any view controllers for which you also overrode the
encode method. Your implementation of this method should use any saved state information to restore the view controller to its previous configuration. If your
encode method called
super, this method should similarly call
super at some point in its implementation.