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

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 参照

Getting Values 値を取得する

Related Documentation 関連文書