私は現在、アニメーションを行う際に奇妙な問題に遭遇しています。
[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」には1回だけ表示されます。
[UIView animateWithDuration:3
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{lblBonus.alpha=0;}
completion:^(BOOL finished){
NSLog(@"finished");
}];
何か問題がありますか?誰もがこれと同じ問題に遭遇したことがありますか?