Giraffe 是 iPhone 的编码动画 GIF 文件,使用的 GIF 编码库是 ANGif(UIImagePixelSource.m 和 ExportViewController.m文件 )
UIImagePixelSource.m
ExportViewController.m
ANGifEncoder * encoder = [[ANGifEncoder alloc] initWithOutputFile:@"myFile.gif" size:CGSizeMake(100, 100) globalColorTable:nil]; [encoder addApplicationExtension:[[ANGifNetscapeAppExtension alloc] init]]; [encoder addImageFrame:anImageFrame]; [encoder addImageFrame:anotherImageFrame]; [encoder closeFile];