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