Creates and returns a new immutable dictionary with the key-value pairs of another dictionary.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new dictionary. Pass
kto use the current default allocator.
The dictionary to copy. The keys and values from the dictionary are copied as pointers into the new dictionary. However, the keys and values are also retained by the new dictionary. The count of the new dictionary is the same as the count of
the. The new dictionary uses the same callbacks as
A new dictionary that contains the same key-value pairs as
NULL if there was a problem creating the object. Ownership follows the The Create Rule.