Returns the value associated with a given key.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The dictionary to examine.
The key for which to find a match in
the. The key hash and equal callbacks provided when the dictionary was created are used to compare. If the hash callback was
NULL, the key is treated as a pointer and converted to an integer. If the equal callback was
NULL, pointer equality (in C, ==) is used. If
key, or any of the keys in
the, is not understood by the equal callback, the behavior is undefined.
The value associated with
NULL if no key-value pair matching
key exists. Since
NULL is also a valid value in some dictionaries, use
CFDictionary to distinguish between a value that is not found, and a
NULL value. If the value is a Core Foundation object, ownership follows the The Get Rule.