Hello Guys,
i'm developing an app that requires caching web pages (completely) along with their CSS files and images.
so after saving the entire Html of the page ( going through the links to store each file along with the Html file )
later on, while viewing the html file offline, UIWebView takes a long time to load the page, given that i'm already offline, and the file is on disk, along with its CSS and images beside that file.
i'm using this code to load the file:
NSData *htmlData = [NSData dataWithContentsOfFile:htmlFilePath];
[wView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[NSURL fileURLWithPath:self.htmlFolderPath isDirectory:YES]];
is there any other means of loading the file to the UIWebView that can load it faster ?
P.S: it loads very fast on simulator ( offline ) but on device it takes a long time ( considering its an already offline cached file )
Thanks for help.