Ios6 IOS 6 UIView动画完成

Ios6 IOS 6 UIView动画完成,ios6,uiviewanimation,Ios6,Uiviewanimation,你知道为什么下面的代码在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 !!!!!!");}]; 这是密码 [UIV

你知道为什么下面的代码在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 !!!!!!");}];
这是密码

  [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
                 }];

那它不起作用呢?没有发生什么事或是发生了什么事?你说它在哪里?Ir在IOS 5下运行得很好,响应“完成”,但在IOS 6上(在模拟器和iPad中),NSLog根本不执行!我今天似乎遇到了一个非常类似的问题。我有一个可以在iOS 5上正常工作的动画块,但在iOS 6上,完成块从不触发。需要是UIViewAnimationOptionCurveEaseInOut,而不是UIViewAnimationCurveEaseInOut