【发布时间】:2011-08-31 20:11:54
【问题描述】:
在我的游戏中,我在 GameLayer 中创建了许多需要在 Level1 中调用的方法。我不知道为什么,但是当我单击开始时,我在控制台中收到此错误,并且游戏崩溃了。
Assertion failure in -[CCTimer initWithTarget:selector:interval:]
接着
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Signature not found for selector - does it have the following form? -(void) name: (ccTime) dt'
我在这里上传了 GameLayer.h 和 .m:http://www.4shared.com/file/O_1utrRj/undefined.html
注意:Level1(我称之为方法的地方)在 GameLayer 中。
【问题讨论】:
-
您的代码无法在我的 XCode 上编译。
-
我只包含了有问题的 2 个文件,没有包含 Helloworld、资源等
-
我阅读了您的源代码(部分原因是您确实发布了整个 XCode 项目)。这对 StackOverflow 来说太宽泛了,甚至对代码审查姐妹网站来说也是如此。
-
你这是什么意思?这个问题太复杂了?
-
你不应该让别人去阅读你项目的代码。您应该寻找错误区域并将其显示在您的问题中。
标签: iphone cocos2d-iphone crash assertion