アニメーションを100回繰り返し再生しようとすると、次のコンソールメッセージでiPhone上のアプリケーションが終了します。iPhone上でアニメーションを再生すると "現在のフレームを復元できませんでした"
Program received signal: “0”. warning: check_safe_call: could not restore current frame
私はこのクラッシュをどのように取り除くことができますか?アニメーションを使って何か間違っているのですか?コードは次のとおりです。
catAnimationImageView.image = [UIImage imageNamed:@"SZ_Interior_Idle3_0.png"];
NSMutableArray *arr = [ [NSMutableArray alloc] initWithCapacity:114];
for(int iLoop = 0; iLoop < 114; iLoop++)
{
[arr addObject:[UIImage imageNamed:[ NSString stringWithFormat:@"SZ_Interior_Idle3_%d.png",iLoop]]];
}
catAnimationImageView.animationImages = arr;
catAnimationImageView.animationDuration = 10;
catAnimationImageView.animationRepeatCount = 1;
catAnimationImageView.alpha = 1;
[[delegate getMidGroundView] addSubview:catAnimationImageView];
[arr release];
[catAnimationImageView startAnimating];
私は同じ問題を抱えています。それはiPhoneシミュレータでは動作しますが、iPhoneデバイスでは動作しません。 – Raptor