- (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];
}
이 기능은 무엇을 위해 사용됩니까? 자동으로 전화를 걸거나 다른 페이지로 전환 할 때 전화를해야합니까?delloc 기능이 사용되는 이유는 무엇입니까?
왜이 기능을 제대로 이해하지 못 했습니까? –
흠 사본 붙여 넣기 – confusedMind