I need to get all words, which are visible on screen from UIWebView. My UIWebView have html content.
Someone can help me please.
I need to get all words, which are visible on screen from UIWebView. My UIWebView have html content.
Someone can help me please.
Use following way that will give you all text of UIWebView
.
NSString *yourstring = [webView stringByEvaluatingJavaScriptFromString:
@"document.body.innerText"];
Hope, this will help you...
you can use
NSString *str = [self.youWebView stringByEvaluatingJavaScriptFromString:
@"document.body.textContent"];