我用图像选择器选择一部电影。问题是我不知道如何从资产中删除音频。任何想法?这是我用来检索电影的代码:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
NSURL *url = [info objectForKey:UIImagePickerControllerMediaURL];
if ([[NSFileManager defaultManager]fileExistsAtPath:movie.id]) {
[[NSFileManager defaultManager]removeItemAtPath:movie.id error:nil];
[[NSFileManager defaultManager]removeItemAtPath:movie.convertedID error:nil];
}
movie.convertedID=nil;
[self dismissModalViewControllerAnimated:YES];
dispatch_async(dispatch_get_main_queue(), ^{
[self saveNewMovieAt:url];
});
}