ios5 - Download and cache entire web page on ios -


i need download entire webpage , store in app's documents directory , load cache next time user visits.

no matter how search, end asiwebpagerequest..!! though, works, old , deprecated.so looking alternatives. reason trying avoid because ....

it reimplemented url loading system, based on low level constructs (cfnetwork). apple makes improvements high level libraries (nsurlconnection, nscache) asihttp doesn't advancements.

hence, tried sample code apple, gives me nsdata of whichever url feed it. but, when try load nsdata uiwebview using, loaddata:mimetype:textencodingname:baseurl: method, need specify mimetype "text/html" , images , links in webpage doesn't load..!

is there other way can use achieve it..? perhaps using nsurlcache..? how?? there other libraries ou there can use or stuck asiwebpagerequest..?

fyi, need download entire webpage js, css etc.

about alternative of asi, afnetworking more popular now. if want cache content, should have @ nsurlcachestoragepolicy , nsurlcache.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -