如何从AIR的iOS应用程序打开iPad上的PDF文件 [英] How to open a pdf on the iPad from an AIR for iOS app

查看:292
本文介绍了如何从AIR的iOS应用程序打开iPad上的PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个AIR的iOS应用程序,可以下载PDF文件。我不想要显示的应用程序本身的PDF,但要在默认的PDF查看器(iBook笔记本)启动并显示PDF格式。如何才能做到这一点。

I am making an AIR for iOS app that can download pdfs. I do not want to display the pdf in the app itself but want the default pdf-viewer (iBooks) to launch and show the pdf. How can this be done.

据我所知,navigateToURL可以用来与iBook笔记本的URI方案打开一个文件。但我不知道怎么告诉的iBooks看在我的应用程序的应用程序目录。 (或者是有一些秘密目录从应用程序内将文件 - 在那里的iBooks可以找到它)

I am aware that navigateToURL can be used to open a file with the uri scheme of iBooks. But i dont know how to tell iBooks to look in the app-directory of my app. (Or is there some secret directory to place the file in from within the app - where iBooks can find it)

我有一个很难搞清楚什么是预期的行为应该是。我可以从应用程序打开的iBooks,但我应该在哪里放置文件,这样的iBooks可以得到它?

I have a hard time figuring out what the expected behavior should be. I can open iBooks from the app, but where should i place the file so that iBooks can get to it?

任何指针或帮助将不胜pciated因为这AP $ P $是有点作秀塞。

Any pointers or help would be greatly appreciated as this is somewhat of a show stopper.

推荐答案

如果简单navigateToURL将不会按预期工作,我建议你看的 AIR本机扩展(ANE)和<一href="https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIDocumentInteractionController_class/Reference/Reference.html"相对=nofollow> UIDocumentInteractionController (+ 博客文章)。

If simple navigateToURL won't work as expected, I'd suggest you to look at AIR Native Extensions (ANE) and UIDocumentInteractionController (+ blog post).

这篇关于如何从AIR的iOS应用程序打开iPad上的PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆