iOS engineer who likes clean, simple designs and sans-serif.

Loading

Debugging Object is Dealloc’ed in Cocos2d

This is a good way to check to make sure your objects are dealloc’ed with Cocos2d.

- (void)dealloc{
    NSLog(@"Object has been deallocated");
}

- (void)onExit{
    [self removeAllChildrenWithCleanup:YES];
    [self stopAllActions];
    [super onExit];
}

Leave a Comment