iOS 动画

    CGRect frame = self.myview.frame;

    frame.origin.y += 200;

    

    [UIView beginAnimations:nil context:nil];

    [UIView setAnimationDuration:1.0];

    self.myview.frame = frame;

    [UIView commitAnimations];

 

     [UIView animateWithDuration:1.0 animations:^{

        self.myview.frame = frame;

    }];

 

    [UIView animateWithDuration:1.0 delay:0 usingSpringWithDamping:0.1 initialSpringVelocity:10 options:UIViewAnimationOptionAllowAnimatedContent animations:^{

        self.myview.frame = frame;

    } completion:^(BOOL finished) {

        

    }];

 

    self.myview.transform = CGAffineTransformTranslate(self.myview.transform, 0, 20);

    self.myview.transform = CGAffineTransformScale(self.myview.transform, 0.1, 0.1); 

    self.myview.transform = CGAffineTransformRotate(self.myview.transform, M_1_PI); 

    NSLog(@"%@",NSStringFromCGAffineTransform(self.myview.transform));

 

等等。。。 

你可能感兴趣的:(ios)