I have a string in a UITextView.
NSString *str = @"Hello world. What @are you @doing ?"
When I tap on the UITextView the cursor goes where I tap on the string. But I need that, suppose I tap on any character of that textview, the cursor will automatically goes to the end of that word. For e.g, I tap on the character "e" in "Hello", then the cursor will place after "Hello".
How can I do this?
textView.selectedRange
? Get the range (i.e. index) and compute next none white space character? – zc246selectedRange
– zc246