Replaces a value corresponding to a given key.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The dictionary to modify.
The key of the value to replace in
the. If a key which matches
keyis present in the dictionary, the value is changed to the
value, otherwise this function does nothing (“replace if present”).
The new value for
valueobject is retained by
theusing the retain callback provided when
thewas created, and the old value is released.
valuemust be of the type expected by the retain and release callbacks.