【发布时间】:2015-09-02 05:44:58
【问题描述】:
我在使用空投分享视频时遇到了一些问题。所以,我像这样使用AssetLibrary:
else if (conformsToVideo) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Asset Loaded" message:@"Video One Loaded"
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
self.mediaAsset = [AVAsset assetWithURL:[info objectForKey:UIImagePickerControllerMediaURL]];
UIActivityViewController * controller = [[UIActivityViewController alloc] initWithActivityItems:@[self.mediaAsset] applicationActivities:nil];
[self presentViewController:controller animated:YES completion:nil];
}
也许这不是这样做的方法,我不知道,也没有找到任何关于它的教程,所以如果你有,我很乐意接受。
现在我的问题是,当我选择一个视频时,一切正常,直到 UIActivityViewController 弹出,我没有任何错误但我不能使用空投 (nor any other service BTW) 我唯一能做的就是按UIAVController的Cancel button。
我正在使用iOS 8.3。
感谢您的帮助
【问题讨论】: