你知道为什么下面的代码不能在iOS6下运行吗?它在iOS5下运行的很好,可以执行NSLog,但是在iOS6(模拟器和iPad)上,NSLog根本不能执行!
[UIView animateWithDuration: 2.0f animations:^{ [self.view setAlpha:0.7f];}
completion:^(BOOL finished){ if(finished) NSLog(@"Finished !!!!!!");}];发布于 2012-10-23 20:58:35
这里是代码
[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
}];https://stackoverflow.com/questions/13030831
复制相似问题