我目前在做动画时遇到了一个奇怪的问题:
[UIView animateWithDuration:3
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{lblBonus.alpha=0;}
completion:^(BOOL finished){
[lblBonus removeFromSuperview];
NSLog(@"finished");
[self updateNewRecord];
[self clearScreen];
[self btnStartPlaying];
[self.view.layer removeAllAnimations];
}];
所有功能都一直在调用,直到应用程序崩溃,但“NSLog”只显示一次,如果删除了所有功能:
[UIView animateWithDuration:3
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{lblBonus.alpha=0;}
completion:^(BOOL finished){
NSLog(@"finished");
}];
什么都错了?有人遇到过同样的问题???
答案 0 :(得分:0)
是的,最后我发现动画是由计时器反复调用的......我一定是太累了,整天坐在MACbook前面,