How to get last edit point of editing a UITextView?
I am trying to get the last editing point of a UITextView box.
I have tried getting the value textView.selectedRange.location,but it always comes开发者_如何学Python out as 2147483647 (which is -1).
When should I read this value
You could save the selectedRange
in the -textViewShouldEndEditing:
method of your delegate, and then use this saved value.
精彩评论