title: Create and export an animated gif via iOS?
body: <p>I have a series of user-customized images within an iOS app that are being animated in a simple, frame-by-frame flip book style.  </p>
  
  <p>My question is this: is there a way to allow users to export their animation as an animated gif?  Ideally, I'd like to enable them to email, social share (T/FB) or (worst case..) save an animated gif to their documents folder for retrieval via iTunes.   </p>
  
  <p>I know how to save a .png to the photo library, and I found a way to record an animation as a QT file (<a href="http://www.cimgf.com/2009/02/03/record-your-core-animation-animation/" rel="nofollow noreferrer">http://www.cimgf.com/2009/02/03/record-your-core-animation-animation/</a>), but I haven't found a way to just kick out a plain old animated gif.  Am I missing something in Core Animation or somewhere else? Are there any approaches, frameworks, or resources that anyone can recommend?  Sorry if the question is too general - struggling to find a starting point.</p>