Sets the receiver's version number.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The version number for the receiver.
The version number is helpful when instances of the class are to be archived and reused later. The default version is
The version number applies to
NSUnarchiver, but not to
NSKeyed. A keyed archiver does not encode class version numbers.