Replaces the characters in the given range with the characters of the given string.
- iOS 3.2+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A range specifying the characters to replace.
A string specifying the characters to replace those in
The new characters inherit the attributes of the first replaced character from
a. Where the length of
a is 0, the new characters inherit the attributes of the character preceding
a if it has any, otherwise of the character following
NSRange if any part of
a lies beyond the end of the receiver’s characters.