DDHTextView
DDHTextView copied to clipboard
emoji character
when you have an emoji character, the character size is 2, so you should move 2 characters instead of one. Otherwise the cursor will move to an invisible position..
Good point. I'll look into it.
you can use this to get the character length:
NSRange nextRange = [textView.text rangeOfComposedCharacterSequenceAtIndex:textView.selectedRange.location];