Hmm the plot thickens! So I have managed to get my animations to continue after the app has been dismissed to the multitasking tray. To do this I have to reset the initial position when the app comes to life again, like this...
Code:
wheel.transform = CGAffineTransformMakeRotation(0);
and for completeness this is my animation block...
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");
]}
}];
Whilst this is working it isn't perfect because the animation skips back to its start position when the view loads. I guess I can live with it but I'd rather not. Can anyone explain why I have to do this or how I could get around it?
Thanks