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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -