Instance Method


Invokes setValue(_:forKey:) on each of the array's items using the specified value and key.


func setValue(_ value: Any?, forKey key: String)



The object value.


The key to store the value.

See Also

Key-Value Coding

func value(forKey: String) -> Any

Returns an array containing the results of invoking value(forKey:) using key on each of the array's objects.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software