私のアプリには次のようなアニメーションがあります。
[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 に読み込んでいます。 it) これらのアニメーションはすべて動作を停止し、一時的にではなく、すぐにアニメーション化されます。
コードで UIView animateWithDuration と UIView commitAnimations 全体を停止する理由は何ですか?