Hello all,
My first post here, had posted this question on stackoverflow as well but haven't got any replies. Here goes.
I am using UIWebView to open local files of Office (ppt, xls, doc) and iWork (numbers, pages, key) formats, all less than 5 MB in size. To load them, I simply do:
Code:
NSURL *url = [NSURL fileURLWithPath:filepath];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:requestObj];
When loading some of these files in web view (especially ppts with large number of images in them), the memory usage shoots up to almost 35 MB causing my app to crash. I have looked around various iOS forums but haven't really found a solution. Does using loadData:MIMEType:textEncodingName:baseURL: help in keeping the memory footprint down or are there any other tricks to using UIWebView?
Thank you.