您的位置:首页 > 产品设计 > UI/UE

QuickLook(简介)

2016-01-24 14:11 465 查看
QuickLook库可以让我们的App在iPhone/iPad中直接预览各个文件了。官方的开发文档中说明其支持的文件类型有:

iWork documents

Microsoft Office documents (Office ‘97 and newer)

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

如果你想让用户选择一个应用程序打开一个预览项目,可以使用UIDocumentInteractionController。

Classes

UIViewController

QLPreviewController 预览文件的UIViewController。

Protocols

QLPreviewControllerDataSource 数据源操作。

QLPreviewControllerDelegate 过渡动画、能否打开链接管理和QLPreviewController关闭。

QLPreviewItem 文件Item的协议,需要自定义文件类。

Appendix

Sample Code

Swift

Related Documentation

Quick Look Framework Reference for iOS

Revision History

时间描述
2016-01-24博文完成

Copyright

CSDN:http://blog.csdn.net/y550918116j

GitHub:https://github.com/937447974/Blog
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: