Contents

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. range must 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.

See Also

Modifying a String