tags:

views:

449

answers:

2

Hi guys! I have written a script that download some HTML files into the Documents folder of my app! I want to load this files in my WebView, is that possible?

For example: If index.html is present in Documents folder, load it, else load index.html in mainBundle!

Thanks to everyone can help me!

+1  A: 

Sure, just use:

[webview loadRequest: [NSURLRequest requestWithURL: [NSURL fileURLWithPath: [@"~/Documents/index.html" stringByExpandingTildeInPath]]]]

Ben Gottlieb
A: 

Hello Obliviux,

Will you be able to share your html and script files that accomplish downloading and storing something to the Documents folder ?

Thanks

CrossPhoneAppWriter
ask a new question.
jm