其它应用打开
来源:互联网 发布:淘宝获取商品id 编辑:程序博客网 时间:2024/05/18 02:26
将app中的pdf文件可以用其它应用打开如下图
首先声明对象
@property(retain, nonatomic) UIDocumentInteractionController *diController;
self.diController = [UIDocumentInteractionControllerinteractionControllerWithURL:filePath];
// NSDictionary* dic = [NSDictionary dictionaryWithObject:@"fruit" forKey:@"tag"];
// self.diController.annotation = dic;
self.diController.delegate =self;
if ([self.diControllerpresentOptionsMenuFromRect:self.view.frame
inView:self.viewanimated:YES]){
} else {
[ApplicationInfoshowToastWithMsg:@"沒有程序可以打开要分享的文件"];
}
}
阅读全文
0 0
- 其它应用打开
- Android中打开其它应用
- iOS 用其它应用打开文件
- url scheme 打开其它app 应用
- Android 在本应用中打开其它应用
- iOS 用其它应用打开文件研究&…
- Activity的启动模式_打开其它应用中的Activity
- UIDocumentInterRactionController 使用时的注意事项(其它应用打开)
- Android 打开应用方式之间的区别(安装后选择“打开(Open)”对比其它方式)
- WebLogic的其它应用
- 强行关闭其它应用
- Application其它一些小应用
- unity 应用其它DLL方法
- 关闭其它进程的已打开对象
- 关联其它程序打开txt类型文件
- Intent打开其它文件的使用
- Fedora 不能打开其它NTFS盘
- android应用内调用其它android应用
- 最长公共子串、最长公共子序列、最长回文子串、最长回文子序列、回文子串个数
- 【最短路入门专题1】] hdu2544 A
- sass教程随笔(三)
- ORA-00245: control file backup failed; target is likely on a local file system
- Android之圆形头像(实现相机拍摄+相册选择+图片裁剪功能)
- 其它应用打开
- Android OpenGL相机视角
- 【LeetCode】003.Longest Substring Without Repeating Characters
- Swift 闭包表达式-来自CocoaChina
- POJ1008算法解析
- 网络流详解(2)
- PyQt5笔记
- 知乎Python小项目练习记录
- Node Http模块