### DocInteraction ###
================================================================================
DESCRIPTION:
This sample how to use UIDocumentInteractionController to obtain information about documents and how to preview them. There are two ways to preview documents: one is to use UIDocumentInteractionController's preview API, the other is directly use QLPreviewController. This sample also demonstrates the use of UIFileSharingEnabled feature so you can upload documents to the application using iTunes and then to preview them. With the help of "kqueue" kernel event notifications, the sample monitors the contents of the Documents folder.
In addition it leverages UIDocumentInteractionController's built-in UIGestureRecognizers (i.e. single tap = preview, tap-hold = options menu) by attaching them to the display icon.
DirectoryWatcher
An object used to help monitor the contents of the "Documents" folder by using "kqueue", a kernel event notification mechanism.
Normally apps would use these UIApplication delegate calls to scan the Documents folder for content changes:
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillResignActive:(UIApplication *)application;
With the DirectoryWatcher object, rather, you can detect changes without having to unnecessarily scan the Documents folder in numerous places in your code.
================================================================================
BUILD REQUIREMENTS:
iOS SDK 4.1 or later
================================================================================
RUNTIME REQUIREMENTS:
iOS 4.0 or later
================================================================================
CHANGES FROM PREVIOUS VERSIONS:
Version 1.4
- Upgraded to support iOS 5.0 SDK, added QLPreviewControllerDelegate to DITableViewController.h.
Version 1.3
- Upgraded to support iOS 4.2 SDK, QLPreviewController now navigates to a separate screen.
Version 1.2
- Fixed Xcode project deployment target to 4.0.
Version 1.1
- Modified and improved for previewing files in the Documents folder.
Version 1.0
- First Version, released for WWDC 2010
================================================================================
Copyright (C) 2010-2012 Apple Inc. All rights reserved.
没有合适的资源?快使用搜索试试~ 我知道了~
iOS文档读取的三种实现方法源代码
共106个文件
m:12个
ds_store:9个
plist:9个
需积分: 17 3 下载量 83 浏览量
2015-08-28
11:07:47
上传
评论 1
收藏 12.06MB ZIP 举报
温馨提示
三种实现读取doc,ppt,xls,pptx,docx,xlsx,图片,网页,txt以及解码的iOS源代码
资源推荐
资源详情
资源评论
收起资源包目录
iOS文档读取的三种实现方法源代码 (106个子文件)
路遥的《人生》读后感.doc 23KB
路遥的《人生》读后感.doc 23KB
路遥的《人生》读后感.doc 23KB
说明.doc 22KB
日记_无奈之人生.docx 29KB
日记_无奈之人生.docx 29KB
日记_无奈之人生.docx 29KB
.DS_Store 10KB
.DS_Store 10KB
.DS_Store 8KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
DITableViewController.h 3KB
DirectoryWatcher.h 3KB
DocInteractionAppDelegate.h 3KB
RootViewController.h 778B
TestAppDelegate.h 414B
AppDelegate.h 291B
TestViewController.h 278B
ViewController.h 229B
HTML Document.html 239B
HTML Document.html 239B
HTML Document.html 239B
iTunesArtwork 5KB
Image Document.jpg 329KB
Image Document.jpg 329KB
Image Document.jpg 329KB
Contents.json 1KB
.LSOverride 34B
DITableViewController.m 13KB
DirectoryWatcher.m 7KB
TestViewController.m 4KB
RootViewController.m 4KB
DocInteractionAppDelegate.m 3KB
main.m 3KB
AppDelegate.m 2KB
DocumentReaderTests.m 894B
TestAppDelegate.m 747B
ViewController.m 508B
main.m 351B
main.m 348B
project.pbxproj 22KB
project.pbxproj 22KB
project.pbxproj 15KB
JOHN.pbxuser 12KB
DocInteraction_Prefix.pch 197B
test_app_Prefix.pch 185B
Core J2ME Technology.pdf 260KB
PDF Document.pdf 27KB
PDF Document.pdf 27KB
JOHN.perspectivev3 44KB
Info.plist 1KB
DocInteraction-Info.plist 1KB
iPhoneApp.plist 985B
Info.plist 745B
xcschememanagement.plist 576B
xcschememanagement.plist 486B
xcschememanagement.plist 486B
xcschememanagement.plist 481B
xcschememanagement.plist 481B
iOSDevTips.png 17KB
Icon@2x.png 1KB
Icon-72.png 1KB
Icon-Small@2x.png 1010B
Icon.png 1007B
Icon-Small-50.png 992B
Icon-Small.png 918B
人生杂谈.ppt 3.61MB
人生杂谈.ppt 3.61MB
人生杂谈.ppt 3.61MB
去.pptx 38KB
去.pptx 38KB
去.pptx 38KB
Main.storyboard 2KB
ReadMe.txt 2KB
Text Document.txt 211B
Text Document.txt 211B
Text Document.txt 211B
Breakpoints.xcbkptlist 6KB
DocumentReader.xcscheme 4KB
DocInteraction.xcscheme 3KB
iPhoneApp.xcscheme 3KB
DocInteraction.xcscheme 3KB
iPhoneApp.xcscheme 3KB
UserInterfaceState.xcuserstate 101KB
UserInterfaceState.xcuserstate 62KB
UserInterfaceState.xcuserstate 24KB
UserInterfaceState.xcuserstate 24KB
UserInterfaceState.xcuserstate 18KB
contents.xcworkspacedata 159B
contents.xcworkspacedata 159B
contents.xcworkspacedata 154B
MainWindow.xib 24KB
DITableViewController.xib 18KB
RootViewController.xib 9KB
LaunchScreen.xib 4KB
共 106 条
- 1
- 2
资源评论
度飞鸿
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功