Instance Method インスタンスメソッド

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.

See Also 参照

Setting Values 値を設定する

Related Documentation 関連文書