nimaciones de @UIView con autoreverse
Tengo un problema con la configuraciónUIViewAnimationOptionAutoReverse
. Aquí está mi código.
CALayer *aniLayer = act.viewToChange.layer;
[UIView animateWithDuration:2.0 delay:1.0 options:(UIViewAnimationCurveLinear | UIViewAnimationOptionAutoreverse) animations:^{
viewToAnimate.frame = GCRectMake(1,1,100,100);
[aniLayer setValue:[NSNumber numberWithFloat:degreesToRadians(34)] forKeyPath:@"transform.rotation"];
} completion:nil ];
El problema es que, después de que la animación se ha revertido, la vista vuelve al marco establecido en el bloque de animación. Quiero que la vista crezca y "crezca" y se detenga en su posición original.
Existe una solución sin programar dos animaciones consecutivas?