当我尝试构建或运行我的iphone游戏时,我得到了一个不寻常的错误。
//GameScene.
- (void) onExit
{
if(!([SimpleBox2dScrollerAppDelegate get].paused)) //error comes here
{
[SimpleBox2dScrollerAppDelegate get].paused = YES;
[super onExit];
}
} // SimpleBox2dScrollerAppDelegate.mm
+(SimpleBox2dScrollerAppDelegate *) get {
return (SimpleBox2dScrollerAppDelegate *) [[UIApplication sharedApplication] delegate];
} 可能的原因是什么?
发布于 2011-05-12 13:10:27
这没什么,可能在你做了更改之后,你得到了一些错误,然后得到了这种错误。
遵循这些步骤,它可能会解决你的问题。
从模拟器-Delete应用程序。-clean all目标。-empty缓存。-delete构建
现在试着跑吧。
https://stackoverflow.com/questions/5973408
复制相似问题