I try to share my mp3 songs from my app using UIActivityViewController.It pop the sharing action sheet and attached my file.After share or send it will delete from my app.Why?
It is working good in ios7 but not working well in ios8.
This is my code what I am done.
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];
Please help me...