textViewDidChange is not call when change UITextView.inputView?

折月煮酒 提交于 2019-12-04 12:53:06

In your custom keyboard, you probably change text inside textView by using method setText:, but changes made in this method doesn't call a textViewDidChanged callback.
Read more in documentation.

textViewDidChange:
Discussion

The text view calls this method in response to user-initiated changes to the text. This method is not called in response to programmatically initiated changes.

So, you should manually call this method from your keyboard.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!