objectiveC中添加多个动画到View中

hi,本人只能添加一个动画到view中,但是需求是添加多个。

请高手帮忙。

谢谢。

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:kAnimationDuration];
//self.square.bounds = CGRectMake(0, 0, self.square.bounds.size.height, 200);
//self.transform = CGAffineTransformMakeScale(2, 1);


CGAffineTransform scaleTrans1 = CGAffineTransformMakeScale(2, 1);

self.transform = scaleTrans1;
[UIView commitAnimations];

解决了。

- (void)drawRect:(CGRect)rect
{    
    [UIView animateWithDuration:4.0f animations:^{
        self.transform = CGAffineTransformMakeScale(2, 1);
    } completion:^(BOOL finished){
        [UIView animateWithDuration:4.0f animations:^{
           self.transform = CGAffineTransformMakeScale(0.75, 1);
        } completion:^(BOOL finished){
            [UIView animateWithDuration:4.0f animations:^{
              self.transform = CGAffineTransformMakeScale(2, 1);  
            } completion:^(BOOL finished) {
                [UIView animateWithDuration:4.0f animations:^{
                    self.transform = CGAffineTransformMakeScale(0.75, 1);
                }];
            }];
        }];
    }];
}