Μήτ*_*σος 2 uiviewanimation ios6
知道为什么下面的代码在IOS 6下不起作用,虽然它在IOS 5下运行完美但在IOS 6上运行但在IOS 6上(在模拟器和iPad中)NSLog根本没有执行!
[UIView animateWithDuration: 2.0f animations:^{ [self.view setAlpha:0.7f];}
completion:^(BOOL finished){ if(finished) NSLog(@"Finished !!!!!!");}];
Run Code Online (Sandbox Code Playgroud)
这里是守则
[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
}];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8460 次 |
| 最近记录: |