Overridden by subclasses to substitute another object for itself during encoding.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The coder encoding the receiver.
The object encode instead of the receiver (if different).
An object might encode itself into an archive, but encode a proxy for itself if it’s being encoded for distribution. This method is invoked by
NSObject’s implementation returns