XCODE5 と Cocos2D 2.x にアップグレードするのが適切だと思いましたが、私のコードは同意しません。他のコードのほとんどの修正を見つけることができましたが、これを解決できないようです。
- (CCAnimation *)createCatAnimation:(NSString *)animType
{
CCAnimation *animation = [CCAnimation animation];
for(int i = 1; i <= 2; ++i) {
[animation addFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] //addFrame: is deprecated
spriteFrameByName:
[NSString stringWithFormat:@"cat_%@_%d.png", animType, i]]];
}
animation.delay = 0.2; //.delay is deprecated
return animation;
}
非推奨のものに満足するようにこれを変更するにはどうすればよいですか?