ios:在应用之间共享文档。
来源:互联网 发布:淘宝高仿鞋店铺名字 编辑:程序博客网 时间:2024/05/22 04:53
NSString *filePath =
[[NSBundle mainBundle]
pathForResource:@"PDF Document" ofType:@"pdf"];
NSLog(@"file path is: %@", filePath);
self.documentController =
[UIDocumentInteractionController
interactionControllerWithURL:[NSURL fileURLWithPath:filePath]];
self.documentController.delegate = self;
self.documentController.UTI = @"com.adobe.pdf";
[self.documentController presentOpenInMenuFromRect:CGRectZero
inView:self.view
animated:YES];
- (BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NSLog(@"openURL method was called");
NSLog(@"the source application is: %@", sourceApplication);
NSLog(@"url is: %@", url);
NSLog(@"handle the file in above file path for the shared doc");
return YES;
}
- iOS, 在应用之间共享文档。
- iOS,在应用之间共享文档
- ios:在应用之间共享文档。
- IOS在app之间共享文件
- iOS 共享文件的方法,应用间传文档
- iOS 共享文件的方法,应用间传文档
- 在不同的Web应用之间共享数据
- 在不同应用之间共享数据ContentProvider,ContentResolver
- 如何在不同的android应用之间共享数据?
- android 利用SharedPreferences 在不同应用之间共享数据
- IOS APP在不同设备之间共享文件
- 不同应用之间共享数据!
- iOS应用程序之间数据共享
- 在页面之间共享代码
- 在 request 之间共享 SecurityContext
- IOS-应用之间调用
- IOS-应用之间调用
- ios 应用之间交互
- 图解SQL视频
- Hdu4759.Poker Shuffle
- UAP 前端简单总结
- uva Lining Up
- SQL多行数据插入
- ios:在应用之间共享文档。
- 毫秒必争,前端网页性能最佳实践
- Django-1.5.4 安装和入门
- MINA之简单介绍
- 主机不联网时和vitrualbox虚拟机通信
- Kmp字符串匹配算法
- Ruby和JavaScript对象模型的比较
- dojo第一天
- Common Wait Events(读书总结)