title: iOS Core animation and ARC
body: <p>I have started using CoreAnimation in my new app, i use CA to make some cool animations. But i'm new to objective C and it's difficult to me and i'm facing this big problem : </p>
  
  <p>i have made a custom UIView : customView, i'm using a xib to get a user interface and set IBOutlet, custom view is a simple small view with an UIImageView inside. </p>
  
  <p>In my view controller i have made a loop that insert severals customView, in this loop i set both a CAnimation for the view and for the imageView : </p>
  
  <pre><code>for (int i = 0 ; i &lt; 8 ; i ++ )
  {
  
      CABasicAnimation *balanceAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
    // ... set Animation here...    
      [customView.myImgView.layer addAnimation:balanceAnimation forKey:nil];
  
      CABasicAnimation *moveUp3Bis;
      // ... setting animation here...
      moveUp3Bis.repeatCount = 1;
  
      [customView.layer addAnimation:moveUp3Bis forKey:nil];
  
  }
  </code></pre>
  
  <p>I call this loop as long as the view controller is current controller after 10 sec delay </p>
  
  <p>So the views gets animate, move, and go beside the main window, but after a long time animations get slower and slower...</p>
  
  <p>Of course i have understood that my loop add to the stack too many customView, the view are not released (may be because animations is still on ?)</p>
  
  <p>I thought that views would be released after a while but i think the view will be moving for ever. 
  May be i need to set a pointer to my view and release it after a delay ? 
  I'm sure CA have planned something for case like that ?</p>
  
  <p>But i do not know what can i do ? </p>
  
  <p>Thank you for any help.  </p>