views:

31

answers:

0

Hi

I want to perform a simple rotation with core animation using this code:

        [UIImageView beginAnimations:nil context:nil]; 
    [UIImageView setAnimationDuration:1];
    [UIImageView setAnimationRepeatCount:5];
    CATransform3D rotationTransform = CATransform3DIdentity; 
    rotationTransform = CATransform3DRotate(rotationTransform, DegreesToRadians(179) , 0.0, 0.0, 1.0); 
    [self cellaInPosizione:cont].freccia.layer.transform = rotationTransform; 
    [UIImageView commitAnimations];

Whit this code the animation in repeated 5 time but between 2 animation there a stop. I want to have the 5 animation in succession without any stop

Can anyone help me?