decodeObject(forKey:)
Decodes and returns an object associated with a given key.
Declaration
func decodeObject(forKey key: String) -> Any?Parameters
- key:
A key in the archive within the current decoding scope.
keymust not benil.
Return Value
The object associated with the key key. Returns nil if key does not exist, or if the value for key is nil.