IOS 8 documentContextBeforeInput returns only partial text
I am currently using iOS 8 with keyboard expansion textDocumentProxy.documentContextBeforeInput
to get the text the user has entered in order to perform some modification.
I noticed that while the method documentContextBeforeInput
will work fine for any sticks of text, once the "." Periods, it documentContextBeforeInput
can only return the text after .
For example, testing the following text: "This is sentence 1. And this is sentence 2" When used documentContextBeforeInput
with the placement of the cursor at the end, it will only return "And this is sentence 2", not all the text that appeared before it.
Has anyone also encountered this problem and if you find a workaround?
Thank!
source to share
No one has answered this question yet
Check out similar questions: