title: CABasicAnimation delegate for animationDidStop?
body: <p>I am following the example at the bottom of the page to call an <code>animationDidStop</code> function.</p>
  
  <p><a href="http://www.informit.com/articles/article.aspx?p=1168314&amp;seqNum=2" rel="noreferrer">http://www.informit.com/articles/article.aspx?p=1168314&amp;seqNum=2</a></p>
  
  <p>The author says:</p>
  
  <blockquote>
    <p>I have an object that is designed specifically to be the delegate of animations and all it does is hold a reference to the target object, accept the animationDidStop: message and then release itself.</p>
  </blockquote>
  
  <p>This suggests you shouldn't do:</p>
  
  <pre><code>[animation setDelegate:self];
  </code></pre>
  
  <p>I'm pretty new to app programming can someone outline how I might do this? Or send me a link where it is explained.</p>