CABasicAnimation *animation = [CABasicAnimationanimationWithKeyPath:@"transform"];
animation.delegate = self;
animation.toValue = [NSValuevalueWithCATransform3D:CATransform3DMakeRotation(90 , 0, 0, 1.0)];
animation.duration = 0.5;
animation.cumulative = YES;
animation.repeatCount = INT_MAX;
[imageView.layer addAnimation:animation forKey:@"animation"];