DDHTextView icon indicating copy to clipboard operation
DDHTextView copied to clipboard

emoji character

Open ghost opened this issue 12 years ago • 2 comments

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

ghost avatar Nov 25 '13 01:11 ghost

Good point. I'll look into it.

dasdom avatar Nov 25 '13 10:11 dasdom

you can use this to get the character length:

NSRange nextRange = [textView.text rangeOfComposedCharacterSequenceAtIndex:textView.selectedRange.location];

ghost avatar Nov 25 '13 14:11 ghost