I am trying to get the HTML source of a UIWebView without re-downloading it again (a.k.a. do another download, such as [NSData dataWithContentsOfURL:(NSURL*)URL]
or launching an NSURLRequest. Browsing the UIWebView header and documentation, there seems to be no way of accessing the current loaded NSData of the source. Am I missing something ?
相关问题
- Views base64 encoded blob in HTML with PHP
- CALayer - backgroundColor flipped?
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
UIWebView can execute javascript code, so this can work it out.
The inverse should do what you want. That is, load the URL into an NSData object and then load the UIWebView from that object using
– loadData:MIMEType:textEncodingName:baseURL: