There is a demand,
There nets when I log on to a Web site with UIWebView and stored to a specific cache folder, when I pass the offline cache to see.
Reply:
1. Loaded the web page in webView.
2. After webViewDidfinishload, I stored the contents into an NSData object and then converted data to an NSString and wrote to a file and saved in the application folder.
3 Now while trying load it, I am taking the string back from the file and converting it back to NSData and loading it to webView using loadData:. Method
.
This is .....
foreign English website foundHe was webViewDidfinishload event handling, save
But from this point, you may want to write your own program to determine the mechanism to determine whether there has been offline browsing
1. The web pages I am trying to save are simple (doesnt have much css and all) and the problem I am facing is that I am not able to load images, since most of the images in an html are external links, it requires net connection to load it. Any idea how to get images too to get saved to my file?
2. The second problem I am facing is how to delete a saved file from app's folder. I am able to get the list of files in the application's folder and get it populated in a table view and now I want to delete the file when i do "swipe to delete"
These two issues he encountered
Reply:
http://dblog. com.au / iphone-development / iphone-sdk-tutorial-build-your-very-own-web-browser /
Above this one, is to build your own browser UIWebView example
http://dblog.com.au/iphone-development/ loading-local-files-into-uiwebview /
The second is how to use UIWebView Read Local file, which is what you want for offline browsing ...
Reply:
This approach has thought,
In addition to the picture, we are also concerned about the workload problem doing it becomes complicated.
This is our last program, will be forced to use the.
We now hope iphone caching function is very powerful very powerful, strong enough to have visited the website you can always offline access.
The second question is about deleting cache?
This is not quite care about us, our needs lead us not encounter this problem.
Reply:
I will also use traditional, anyway iphone developers forum only you answer the questions.
This approach has thought,
In addition to the picture, we are also concerned about the workload problem, to do so would make the program more complicated.
This is our last program, will be forced to use.
We now hope iphone caching function is very powerful very powerful, strong enough to have visited the website you can always offline access.
The second question is about deleting cache?
We are not quite concerned about this, because we need not make us encounter this problem.
Reply:
In fact, I just often forget to switch Simplified ....
Found only on the information now look, IPhone caching feature does not seem that strong ...
Reply:
I dead,
Just get on googlecode freebase code, and offline storage related research ing.
Reply:
Always addressed ...
Refuel
Reply:
Well, a little bit of luck.
I just told you that freebase let me see some hope.
http://code.google.com/p/freebase-framework/downloads/list
Now can do.
1. UIWebView load www.baidu.com, after loading is complete click the "News", moved to "news" interface.
2. Offline.
3. Restart the simulator, "www.baidu.com" offline show "news" can be off-line display.
Problem: Image is not displayed.
Reply:
I tried to solve this should not be a problem.
Also, offline web style chaos.
Reply:
Css nor should be downloaded to the local relationship
Reply:
Get.
No comments:
Post a Comment