Contents

value(forKey:)

Returns an array containing the results of invoking Value(forkey:) using key on each of the array’s objects.

Declaration

func value(forKey key: String) -> Any

Parameters

  • key:

    The key to retrieve.

Return Value

The value of the retrieved key.

Discussion

The returned array contains NSNull elements for each object that returns nil.

See Also

Key-Value Coding