Contents

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. key must not be nil.

Return Value

The object associated with the key key. Returns nil if key does not exist, or if the value for key is nil.

See Also

Related Documentation

Decoding Data