문제

As far as I know, it is very easy to get all the videos from the Camera Roll, just by doing something like this:

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];

My question is, how is it possible to get all the GIF saved on the camera roll?

I have downloaded the app 'GifBoom Pro' and it does it.

Thank you very much.

도움이 되었습니까?

해결책

I know this is an old question. But for anyone else to come, you'll need to use the Photos framework and use requestImageDataForAsset:imageData:imageUTI,Orientation,Info and compare the image UTI against the string of com.compuserve.gif. ALAssetsLibrary will become deprecated by iOS 9.0

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top