I want to load a local file, example.pages in UIWebview. I tried with this

NSString *path = [[NSBundle mainBundle] pathForResource:@"example" ofType:@"pages" inDirectory:@""];
NSUrl *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webview loadRequest:request];

but doesn't work. Anyone?

有帮助吗?

解决方案

A Pages document is not HTML. You cannot load it in a UIWebView.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top