首页 > 代码库 > 让View旋转

让View旋转

让View旋转

by 伍雪颖


- (IBAction)rotate:(id)sender {
    CABasicAnimation* rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
    rotationAnimation.delegate = self;
    rotationAnimation.fromValue = http://www.mamicode.com/@(0);>