0
我尝试使用UIActivityViewController从我的应用中分享我的mp3歌曲。弹出共享操作表并附加我的文件。分享或发送后,它将从我的应用中删除。为什么?使用UIActivityViewController共享文件将删除文件。为什么?
它在ios7中运行良好,但在ios8中运行不佳。
这是我的代码我所做的。
UIActivityViewController *avc = [[UIActivityViewController alloc] initWithActivityItems:
@[@"Here's an attached mp3 File", fileURL] applicationActivities:nil];
if ([avc respondsToSelector:@selector(popoverPresentationController)])
{
// iOS 8+
UIPopoverPresentationController *presentationController = [avc popoverPresentationController];
presentationController.sourceView = self.view;
}
[self presentViewController:avc animated:YES completion:nil];
请帮我...
我正在共享的文件来自文档目录 – Arunkumar 2014-10-08 10:10:05