Instance Method

decodeRestorableStateWithCoder:

Decodes and restores state-related information for the view.

Declaration

- (void)decodeRestorableStateWithCoder:(NSCoder *)coder;

Parameters

coder

The coder object to use to decode the state of the view.

Discussion

If your app supports state restoration, you should override this method for any views for which you also overrode the encodeRestorableStateWithCoder: method. Your implementation of this method should use any saved state information to restore the view to its previous configuration. If your encodeRestorableStateWithCoder: method called super, this method should similarly call super at some point in its implementation.

See Also

Preserving and Restoring State

restorationIdentifier

The identifier that determines whether the view supports state restoration.

- encodeRestorableStateWithCoder:

Encodes state-related information for the view.