Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
The string to replace.
The string with which to replace
A new string in which all occurrences of
target in the receiver are replaced by
0 options and range of the whole string.