use this instead: ( this will not reset the current text )
[self.textView insertText:@"something"];
this will call the delegate and add the text where the cursor is. Of course, if you want to reset all text, you can:
[self.textView setText:@""]
[self textViewDidChange:self.textView]
or
[self.textView setText:@""];
[self.textView insertText:@"something"];
source
share