Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS textViewDidChange is not triggered when predictive text is selected and added to text

enter image description here

When I tap on "Hello" or "He", textViewDidChange is not triggered.

How to detect when predictive text is selected?

like image 287
Alex Avatar asked Aug 01 '16 00:08

Alex


1 Answers

Try using shouldChangeTextInRange instead of textViewDidChange I tried it and it is triggered with predictive text

like image 186
user3126427 Avatar answered Nov 14 '22 22:11

user3126427