获取保存在iPhone / iPad相机胶卷上的所有GIF图像

时间:2014-04-26 17:35:17

标签: ios camera gif

据我所知,通过这样的方式,很容易从相机胶卷中获取所有视频:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
    imagePicker.delegate = self;
    imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

    imagePicker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie, nil];

    [self presentViewController:imagePicker animated:YES completion:nil];

我的问题是,怎样才能将所有GIF保存在相机胶卷上?

我已经下载了应用程序'GifBoom Pro'并且它已经完成了。

非常感谢。

1 个答案:

答案 0 :(得分:1)

我知道这是一个老问题。但对于其他任何人来说,您需要使用Photos框架并使用requestImageDataForAsset:imageData:imageUTI,Orientation,Info并将图像UTI与com.compuserve.gif字符串进行比较。 iOS 9.0将弃用ALAssetsLibrary

相关问题