Contents

dictionaryWithValues(forKeys:)

Returns a dictionary containing the property values identified by each of the keys in a given array.

Declaration

func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]

Parameters

  • keys:

    An array containing NSString objects that identify properties of the receiver.

Return Value

A dictionary containing as keys the property names in keys, with corresponding values being the corresponding property values.

Discussion

The default implementation invokes value(forKey:) for each key in keys and substitutes NSNull values in the dictionary for returned nil values.

See Also

Related Documentation

Getting Values