Reputation: 1570
Is there a way to download an entire webpage for offline viewing with the iPhone SDK? I can use NSString with the contents of the URL, but that would just give me the HTML and no images. Is there any way to do it?
Upvotes: 1
Views: 1465
Reputation: 31304
The popular open source library ASIHTTPRequest
has a class that will do just this for you: download all HTML, images, and other resources associated with the page you're requesting.
It's called ASIWebPageRequest
, and you can read the documentation and download it from here: http://allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest
Upvotes: 2