2

我尝试使用以下代码一张接一张地显示三张图像:

image_1.alpha = 0.0;
image_2.alpha = 0.0;
image_3.alpha = 0.0;

[UIView animateWithDuration:0.25
                 animations:^{
                     image_1.alpha = 1.0;
                 } completion:^(BOOL finished) {
                     [UIView animateWithDuration:0.25
                                      animations:^{
                                          image_2.alpha = 1.0;
                                      } completion:^(BOOL finished) {
                                          [UIView animateWithDuration:0.25
                                                           animations:^{
                                                               image_3.alpha = 1.0;
                                                           } completion:^(BOOL finished) {
                                                               ;
                                                           }];
                                      }];
                 }];

给出:internal compiler error: Segmentation fault

如果嵌套包含两个动画块,则不会出错。嵌套动画块是不允许还是有一些限制?

4

0 回答 0