我目前在做动画时遇到了一个奇怪的问题:
[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");
}];
有什么不对吗??有人遇到过同样的问题吗???