removeCharacters(in:)
Removes from the receiver the characters whose Unicode values are in a given range.
Declaration
func removeCharacters(in aRange: NSRange)Parameters
- aRange:
The range of characters to remove.
aRange.locationis the value of the first character to remove;aRange.location + aRange.length – 1is the value of the last. IfaRange.lengthis0, this method has no effect.