我在下面的「學習的Cocos2D」和第4章中,我遇到了以下指令:爲「類」無可見@interface聲明選擇「選擇」
而在GameLayer init方法,加在調用initSpiders方法接下來討論,scheduleUpdate之後:
-(id) init {
if ((self=[super init])) {
...
[self scheduleUpdate];
[self initSpiders];
}
return self;
}
我得到和ARC錯誤消息:「GameLayer」不可見的@interface聲明選擇「initSpiders」
我得到了同樣的信息在線:self resetSpiderrs
我在想什麼?一切都建立起來並且運行良好。
你寫過的'initSpiders'和'resetSpiders'但這些方法? 「下一步討論」這一行意味着你即將寫出這些方法。 –