How to load .pages (iWork) in UIWebview?
题
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.
不隶属于 StackOverflow