Change contents of uiwebview div object

Is there any way to change the contents of uiwebview in iphone application? using div or.

My problem is that to add data to uiwebview at any time. Does he think this can be done by replacing the contents of the div?

+4
source share
1 answer

You can change it as

[webview stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('divtagId').innerHTML ='%@';",newContent]]; 
+7
source

Source: https://habr.com/ru/post/1332327/


All Articles