decodeIntegerForKeysomeKey
decodeIntegerForKey: is a method provided by NSCoder and its concrete subclass NSKeyedUnarchiver used to retrieve an integer value that was previously encoded in an archived object. The method requires a single argument, key, which identifies the encoded value in the archive. It returns an NSInteger representing the decoded value.
In practice, this method is commonly used inside the decoding initializer of a class that conforms to
Return semantics and caveats: If no value has been encoded for the specified key, or if the
See also: NSCoding, NSSecureCoding, NSCoder, NSKeyedUnarchiver, encodeInteger:forKey:, decodeObjectForKey:, decodeBoolForKey:.