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

dictionaryWithValuesForKeys:

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

Declaration 宣言

- (NSDictionary<NSString *,id> *)dictionaryWithValuesForKeys:(NSArray<NSString *> *)keys;

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 valueForKey: for each key in keys and substitutes NSNull values in the dictionary for returned nil values.

See Also 参照

Getting Values 値を取得する

Related Documentation 関連文書