0

我的应用程序上有一些动画,如下所示:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
navigasyonresmi.frame = CGRectMake((windowgenisligimiz-10)/4, 194, 10, 4);
[UIView setAnimationDelegate:self];
[UIView commitAnimations];

像这样

[UIView animateWithDuration:0.30 animations:^
 {
     [resimlerimalani setAlpha:0.0];
     [digerdetaylar setAlpha:1.0];
 }
 completion:^(BOOL finished)
 {
    resimlerimalani.hidden=TRUE;
 }];

他们工作得很好,但是当我开始在我的应用程序上做一些事情时,比如当我访问我的图片页面时,我在 nsthread 中加载所有图片,一切正常,但是发生了一些事情之后(我不知道是什么它)所有这些动画都停止工作,它们立即制作动画,而不是一次。

在代码中停止整个 UIView animateWithDuration 和 UIView commitAnimations 的原因是什么?

4

0 回答 0