Contents

data(forKey:)

Returns the data object associated with the specified key.

Declaration

func data(forKey aKey: String) -> Data?

Parameters

  • aKey:

    The key to retrieve from the iCloud key-value store.

Return Value

The data object associated with aKey, or nil if the key isn’t present. This method also returns nil if the retrieved value isn’t a data object.

See Also

Getting values