开发者

Save content of UIWebView

开发者 https://www.devze.com 2023-03-01 15:54 出处:网络
I am working on an app and I need to save the content of UIWebView. I currently UsestringByEvaluatingJavaScriptFromString:@\"document.getElementsByTagName(\'html\')[0].innerHTML\"

I am working on an app and I need to save the content of UIWebView.

I currently Use stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('html')[0].innerHTML" to get the html of the UIWebView, but the problem with this method is that it does not save the full content of some webpages.

开发者_开发知识库

So my question is How do you save the full content of a webpage including images and css


I think there is already a thread about this topic here:

iphone uiwebview download complete page with CSS and Images

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消