I'm creating an animated gif from a video using Regift. I'm writing my application in objective C, but I am able to successfully create the gif using a bridge and helper. The result of my helper is a file url.
NSURL *animGifURL = [RegiftHelper createGIFFromURL:furl withFrameCount:8 delayTimer:2 loopCounter:0];
From the file url, I create a UIImage and save it to the library.
UIImage *animGif = [UIImage imageWithData:[NSData dataWithContentsOfURL:animGifURL]];
UIImageWriteToSavedPhotosAlbum(animGif,
self,
@selector(thisImage:hasBeenSavedInPhotoAlbumWithError:usingContextInfo:),
NULL);
Somewhere along the way ( most likely when I create the UIImage ) the gif looses it's animation. So how do I save it so that it retains the animation
I should also mention I'n developing for IOS 9 ...