decodeInt32(forKey:)
Decodes a 32-bit integer value associated with a given key.
Declaration
func decodeInt32(forKey key: String) -> Int32Parameters
- key:
A key in the archive within the current decoding scope.
keymust not benil.
Return Value
The 32-bit integer value associated with the key key. Returns 0 if key does not exist.
Discussion
If the archived value was encoded with a different size but is still an integer, the type is coerced. If the archived value is too large to fit into a 32-bit integer, the method raises an NSRangeException.