How do you write an animated GIF to the iOS camera roll? I understand that the photo gallery app is not able to play animations, but for example I should be able to import it when sending an email, etc.
I've tried:
UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:self.imageData], nil, nil, nil);
But this seems to convert it to a jpg.
You can use gif in iOS email attachment like this.
Create an
ALAssetLibrary
instance. Use this method with yourNSData
:writeImageDataToSavedPhotosAlbum:metadata:completionBlock:
Reference