Can anyone tell me how to detect if cursor position change in textview?
Asked
Active
Viewed 1,451 times
3
-
You can get help from here: http://stackoverflow.com/questions/34922331/getting-and-setting-cursor-position-of-uitextfield-and-uitextview-in-swift – Shabbir Ahmad May 22 '17 at 09:57
-
No.i want to know how to detect if cursor position change not the how to get position of cursor – Jay Patel May 22 '17 at 12:11
-
Got answer.we can detect by textViewDidChangeSelection Method. – Jay Patel May 22 '17 at 12:29
-
Could you please add and accept you own correct answer. I guess I was just as blind when I didn't see textViewDidChangeSelection delegate method. And that duplicate mark by Anbu without link not helping either. You helped, thanks :) – user1244109 Sep 25 '19 at 12:52