1
我在空投分享视频时遇到了一些麻烦。所以,我现在用的是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
),我唯一可以做的就是按Cancel button
的UIAVController
。我正在使用iOS 8.3
。
感谢您的帮助