deleteCharacters(in:)
Removes from the receiver the characters in a given range.
Declaration
func deleteCharacters(in range: NSRange)Parameters
- range:
The range of characters to delete.
rangemust not exceed the bounds of the receiver.
Discussion
This method treats the length of the string as a valid range value that returns an empty string.