ios - textViewDidChange Calling two times while Chinese keyboard -
shouldchangetextinrange
method working fine while english text not working when chinese keyword entered , because of usetextdidchange
method chinese text when chinese text entertextdidchange
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 usingtextview.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
Post a Comment