setValuesForKeys(_:)
Sets properties of the receiver with values from a given dictionary, using its keys to identify the properties.
Declaration
func setValuesForKeys(_ keyedValues: [String : Any])Parameters
- keyedValues:
A dictionary whose keys identify properties in the receiver. The values of the properties in the receiver are set to the corresponding values in the dictionary.
Discussion
The default implementation invokes setValue(_:forKey:) for each key-value pair, substituting nil for NSNull values in keyedValues.