- (void) dealloc
{
// in case you have something to dealloc, do it in this method
// in this particular example nothing needs to be released.
// cocos2d will automatically release all the children (Label)
[_targets release];
[_projectiles release];
[_nottargets release];
[_helicopters release];
[_Explosions release];
[_GameChances release];
_targets=nil;
_projectiles = nil;
_nottargets=nil;
_helicopters=nil;
_Explosions=nil;
_GameChances=nil;
[super dealloc];
}
У меня есть эта функция, для чего она используется? Он вызывает себя автоматически или мы должны вызывать его в конце, когда мы переключаемся на другую страницу?