开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜