Type Method

dictionaryWithDictionary:

Creates a dictionary containing the keys and values from another given dictionary.

Declaration

+ (instancetype)dictionaryWithDictionary:(NSDictionary<KeyType, ObjectType> *)dict;

Parameters

otherDictionary

A dictionary containing the keys and values with which to initialize the new dictionary.

Return Value

A new dictionary containing the keys and values found in otherDictionary.

See Also

Creating a Dictionary from Another Dictionary

- initWithDictionary:

Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary.

- initWithDictionary:copyItems:

Initializes a newly allocated dictionary using the objects contained in another given dictionary.