ios - textViewDidChange Calling two times while Chinese keyboard -


  • shouldchangetextinrange method working fine while english text not working when chinese keyword entered , because of use textdidchange method chinese text when chinese text enter textdidchange calling 2 times, each string 2 times.

  • what should chinese text? know can chinese text using textview.text use html string in textview, if string using textview.text can't html string. suggest me solution can html string textview both english , chinese text.

thanks.

try this:

[self.pwebview evaluatejavascript: @"document.body.innertext"                     completionhandler:^(id _nullable result, nserror * _nullable error) {                      nsstring *astring = result;              }]; 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -