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
。
感謝您的幫助