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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -