title: Why do I need to do this and is there a better way? Animation blocks on iPhone app OS4
body: <p>So I have some animation blocks to create some very simple animations on my app (eg. a wheel spinning continuously). This is the code for the animation (I have changed if from the old commitanimations style block but was getting the same problem with that).</p>
  
  <pre><code>[UIView animateWithDuration:30 delay:0.0
       options:(UIViewAnimationOptionAllowUserInteraction |
       UIViewAnimationOptionCurveLinear 
    |  UIViewAnimationOptionRepeat)
  animations:^(void){
       wheel.transform = CGAffineTransformMakeRotation(M_PI*-0.5);
   }
  completion:^(BOOL finished){
   if(finished){NSLog(@"^^^^^^^^wheel^^^^FINSIHED");
     ]}
  }];
  </code></pre>
  
  <p>The problem I have is that on OS4 when the app has been dismissed to the multitasking bar and resumed the animation stops. If on resume I reset the position when the app becomes active again, like this....</p>
  
  <pre><code>wheel.transform = CGAffineTransformMakeRotation(0);
  </code></pre>
  
  <p>then it continues.</p>
  
  <p>This isn't ideal because my animation skips when it restarts. I don't understand why this happens or why I should need to do this. </p>
  
  <p>The "on finished" method gets called almost immediately as the animation starts which is odd as this animation should never finish. Also it DOES NOT get called when the app becomes active and the animation actually stops.</p>
  
  <p>Anyone any ideas or suggestions?  I'm been struggling with this for some time now...</p>