1

我试图强迫一个动画等待另一个,但没有运气。

UIBezierPath *path = [UIBezierPath bezierPath];

这就是我想要做的:

[path addLineToPoint: point1];

完成后调用:

imageview1.transform = CGAffineTransformMakeScale(1.5f, 1.5f);
4

1 回答 1

1

虽然我仍然不清楚您的需求,但您可以在第一个动画完成后调用一个动画:

[UIView animateWithDuration:1.0f
                        delay:0.0f
                      options:UIViewAnimationOptionCurveLinear
                   animations:^(void){
                     // Add in your first chunk of animated code.
                   }
                   completion:^(BOOL finished) {
                     [UIView animateWithDuration:1.0f
                                           delay:0.0f
                                         options:UIViewAnimationOptionCurveLinear
                                      animations:^(void){
                                        // Add in your second chunk of animated code.
                                      }
                                      completion:^(BOOL finished) {

                                      }];
                   }];

希望有帮助!

于 2012-11-04T20:20:57.060 回答