Pretty old question, but it can help someone!
I use this code to save GIFs in a photo album, and it works fine, verified by opening GIFs in MailViewComposer and iMessage.
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; NSData *data = [NSData dataWithContentsOfFile:tempPath]; // Your GIF file path which you might have saved in NSDocumentDir or NSTempDir [library writeImageDataToSavedPhotosAlbum:data metadata:nil completionBlock:^(NSURL *assetURL, NSError *error) { if (error) { NSLog(@"Error Saving GIF to Photo Album: %@", error); } else { // TODO: success handling NSLog(@"GIF Saved to %@", assetURL); success(tempPath); } }];
Haris Hussain Jul 27 '14 at 22:58 2014-07-27 22:58
source share