タイトルが言ったように、それは非常に奇妙ですが、同意しますか?
だから、誰かがあなたのコードを見つけたら
imageView.backgroundColor = [UIColor greenColor];
また
imageView.image = [UIImage imageName:@"angryBird"];"
動作していません。imageView がアニメーション化されている場合、またはアニメーションが削除されているかどうかに注意してください。
----------以下の回答---------------</p>
画像を設定する前にアニメーションを停止し、アニメーション UIImageView の背景を変更します。
UIImageView* imageView = [UIImageView alloc] init];
//......do sth. like setFrame ...
imageView.images = [NSArray arrayWithObjects....]; // set the animation images array
imageView.animationDuration = 1.0;
[imageView startAnimating];
//......do sth.
[imageView stopAnimating]; // **** do not forget this!!!!! ****
imageView.backgroundColor = [UIColor greenColor];
imageView.image = [UIImage imageName:@"angryBird"];
Selector: withObject: afterDey:1.0s を実行する場合、セレクター メソッドでも、アニメーションを停止してから、setImage または背景色を変更する必要があります。