您的位置:首页 > 移动开发 > IOS开发

iOS调用系统视频分享参考

2017-05-01 11:30 302 查看
iOS调用系统分享参考 

http://blog.csdn.net/liyun123gx/article/details/60875633

http://blog.csdn.net/lcg910978041/article/details/51649289

@property (nonatomic,strong) UIDocumentInteractionController *documentController;

// if (_videoPath == nil) {
// return;
// }
NSURL *url = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"pdf"];
// NSURL * url = [NSURL fileURLWithPath:_videoPath];
_documentController = [UIDocumentInteractionController interactionControllerWithURL:url];
UIViewController * vc = [UIApplication sharedApplication].keyWindow.rootViewController;
[self.documentController presentOpenInMenuFromRect:[UIScreen mainScreen].bounds inView:vc.view animated:YES];
self.documentController.delegate = self;

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