0
UIWebviewにローカルファイルexample.pagesをロードします。私はこれで試しましたUIWebviewで.pages(iWork)をロードするには?
NSString *path = [[NSBundle mainBundle] pathForResource:@"example" ofType:@"pages" inDirectory:@""];
NSUrl *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webview loadRequest:request];
しかし、動作しません。 誰でも?
どのように.pages文書を読み込むのですか? – acid
私はそれを取り戻す。可能かもしれない。 [関連する質問](http://stackoverflow.com/questions/2543295/is-there-any-apis-to-displayed-the-work-files-in-iphone)および[QA 1630](http: /developer.apple.com/library/ios/#qa/qa1630/_index.html)。 –
ドキュメントをzipファイルとしてロードしようとしましたが、example.pages.zip ですが、まだ動作しません。 (Keynote、NumbersおよびPagesドキュメントは、iWork '06またはiWork '08で作成する必要があります.iWork '06およびiWork '08ドキュメントはドキュメントパッケージであり、UIWebViewが認識するためにZIP圧縮されている必要があります。 presentation.key.zip、spreadsheet.numbers.zip、paper.pages.zipなどの名前)。 – acid