旋转动画 uiview animation rotate

#import <QuartzCore/QuartzCore.h>



[UIViewbeginAnimations:@"animationID"context:nil];

[UIViewsetAnimationDuration:0.5f];

[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];

[UIViewsetAnimationRepeatAutoreverses:NO]

indicateImageView.layer.anchorPoint=CGPointMake(0.5,0.5);

indicateImageView.transform =CGAffineTransformMakeRotation([selfradians:0]);

[UIViewcommitAnimations];



-(double)radians:(double)degrees

{

return degrees *M_PI/180;

}


你可能感兴趣的:(animation)