2

知道为什么下面的代码不能在 IOS 6 下运行,而它在 IOS 5 下完美运行,但在 IOS 6(在模拟器和 iPad 中)根本不执行 NSLog!

[UIView animateWithDuration: 2.0f animations:^{ [self.view setAlpha:0.7f];}
                 completion:^(BOOL finished){ if(finished)  NSLog(@"Finished !!!!!!");}];
4

1 回答 1

8

这里是代码

  [UIView animateWithDuration:2.0
                      delay:0.0
                    options: UIViewAnimationOptionCurveEaseInOut
                 animations:^{
                    [self.view setAlpha:0.7f];

                 }
                 completion:^(BOOL finished){
                     if(finished)  NSLog(@"Finished !!!!!");
                     // do any stuff here if you want
                 }];
于 2012-10-23T12:58:35.443 回答