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。
QLPreviewController 预览文件的UIViewController。
QLPreviewControllerDelegate 过渡动画、能否打开链接管理和QLPreviewController关闭。
QLPreviewItem 文件Item的协议,需要自定义文件类。
GitHub:https://github.com/937447974/Blog
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
UIViewControllerQLPreviewController 预览文件的UIViewController。
Protocols
QLPreviewControllerDataSource 数据源操作。QLPreviewControllerDelegate 过渡动画、能否打开链接管理和QLPreviewController关闭。
QLPreviewItem 文件Item的协议,需要自定义文件类。
Appendix
Sample Code
SwiftRelated Documentation
Quick Look Framework Reference for iOSRevision History
时间 | 描述 |
---|---|
2016-01-24 | 博文完成 |
Copyright
CSDN:http://blog.csdn.net/y550918116jGitHub:https://github.com/937447974/Blog
相关文章推荐
- duilib 界面库 实现timer定时器
- 修改UITextField的占位文字颜色的三种层次
- 298. Binary Tree Longest Consecutive Sequence
- UE32 删除空行正则表达式 .
- APUE_文件管理
- UIImageView的两种创建方式的比较
- DP------Unique Paths II
- How to building OpenSSL 0.9.8c
- QtCharts笔记之QValueAxis
- bluestacks启动问题
- Which statement is true about loading data using the conventional path of SQL*Loader? A.Redo is not
- User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or a
- UILabel---.tff格式字体
- - (UIImage*)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapH
- NetSuite 需要注意的地方
- Voluntarily Relinquishing the Processor-----《Pro_Java_8_Programming_(3rd_edition)》
- You have set Tablespace Full Metrics Threshold values for the USERS tablespace as follows: Warning (
- iOS之UIScrollview添加约束图文详解
- bzoj 1670 Building the Moat
- 阻塞队列BlockingQueue的核心方法