How to load .pages (iWork) in UIWebview?
Domanda
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?
Soluzione
A Pages document is not HTML. You cannot load it in a UIWebView.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow