Closed Jinxiansen closed 6 years ago
This is a good note
I use the following code to meet the demand:
POPBasicAnimation * basic = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerRotation];
basic.toValue = [NSNumber numberWithFloat: M_PI * 2.0];
basic.duration = 2;
basic.repeatForever = YES;
basic.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
basic.removedOnCompletion = NO;
[self pop_addAnimation:basic forKey:@"refreshRotationKey"];
However, there is a doubt, view can not be added to the navigationBar, otherwise it will lead to animation deformation.ðŸ˜
I only found kPOPLayerRotationX and kPOPLayerRotationY but no kPOPLayerRotationZ.