How to load .pages (iWork) in UIWebview?
Frage
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?
Lösung
A Pages document is not HTML. You cannot load it in a UIWebView.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow