#import <QuartzCore/QuartzCore.h>
... CABasicAnimation *rotationAni = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAni.toValue = [NSNumber numberWithFloat:M_PI*];
rotationAni.duration = 0.5;
rotationAni.cumulative = YES;
rotationAni.repeatCount = ;
[indicatorView.layer addAnimation:rotationAni forKey:@"rotationAnimation1"];