Changes the value at a given index in an array.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The array in which the value is to be changed.
The index at which to set the new value. The value must not lie outside the index space of
Nis the count of the array before the operation).
The value to set in
the. The value is retained by
theusing the retain callback provided when
thewas created and the previous value at
idxis released. If the value is not of the type expected by the retain callback, the behavior is undefined. The indices of other values are not affected.