- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的应用程序中,我有 Dropbox 实现,用户可以从 Dropbox 下载文档并像幻灯片一样一一查看。我的问题是,如果用户下载 .ppt 文件,那么如何在 iPhone 上显示带有所有动画的 powerpoint 演示文稿,而不使用像幻灯片鲨鱼这样的其他应用程序。
最佳答案
唯一的方法是使用 Quick Look Framework .
使用 Quick Look framework提供您无法处理的格式项目的预览,例如 iWork 或 微软办公 .与从 UIDocumentInteractionController
中获得的相比,此框架为您提供了对预览过程的更多控制。类——包括选择预览是在导航 Controller 的上下文中显示还是模态显示(全屏)。该框架中的主要类是 QLPreviewController,它提供了一个用于预览项目的专用 View 。它依赖于 delegate for
中介预览 Action ,以及用于提供预览项目的数据源。
在 iOS 4.2
之后,由 Quick Look 预览 Controller 呈现的专用 View 包括一个带有打印项的操作按钮。如果 Controller 可以提供文件的预览,它也可以打印它。没有打印代码供您编写。
要显示 Quick Look 预览 Controller ,您可以使用以下任何选项:
UINavigationController
将其推送到 View 中目的。 presentModalViewController:animated:
其父类的方法,UIViewController
. Microsoft Office documents (Office ‘97 and newer)
iWork documents
Rich Text Format (RTF) documents
PDF files
Images
Text files whose uniform type identifier (UTI) conforms to the public.text type (see Uniform Type Identifiers Reference)
Comma-separated value (csv) files
关于ios - 在 iOS 中显示 Powerpoint 演示文稿,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20988654/
我是一名优秀的程序员,十分优秀!