Iphone NSMutableArray中spriteFrameByName处的应用程序崩溃

Iphone NSMutableArray中spriteFrameByName处的应用程序崩溃,iphone,ios4,cocos2d-iphone,Iphone,Ios4,Cocos2d Iphone,我该怎么解决呢?我相信括号里没有。尝试: [action_array addObject:[CCSpriteFrameCache sharedSpriteFrameCache]spriteFrameByName:[NSString stringWithFormat:@"baloon-bl_%d",i]]; “不工作”不是错误消息。当您正确使用它时,它会工作。哪个函数需要哪个参数以及如何调用该方法才能运行代码。否则,编译器会在语法出现错误时显示错误,如果使用错误时会崩溃。 [action_ar

我该怎么解决呢?我相信括号里没有。尝试:

[action_array addObject:[CCSpriteFrameCache sharedSpriteFrameCache]spriteFrameByName:[NSString stringWithFormat:@"baloon-bl_%d",i]]; 

“不工作”不是错误消息。当您正确使用它时,它会工作。哪个函数需要哪个参数以及如何调用该方法才能运行代码。否则,编译器会在语法出现错误时显示错误,如果使用错误时会崩溃。
[action_array addObject:[[CCSpriteFrameCache sharedSpriteFrameCache]spriteFrameByName:[NSString stringWithFormat:@"baloon-bl_%d",i]]];