using this piece of code:
NSString *path = [[NSBundle mainBundle] pathForResource:resourcePath ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
Ironically, I found that UIWebView is able to view these types, but only physically on the iPad, it will not view files in the simulator.
source
share