Error with UITextViewDelegate
In my application, I am capturing what is typed into a UITextView by implementing the textView:shouldChangeTextInRange:replacementText: method, and storing the replacement text.
During testing, if the cursor is at the end of the current text in the text view, and say I paste a 5-letter word from the clipboard into the textview, in the shouldChangeTextInRange method, the replacementText is a string with length 5. However, if the cursor is directly after a letter, the actual text that is added to the textbox is a space followed by the replacementText.
Why does the method's replacementText parameter not include that space?
|