Hello!EveryBody!
My programme run into a problem!The Function "dealloc" is not be called when I use "removechild",just like this:
Sprite *aa =[Sprite spritewithFile:@".."];
[aa setposition:]
[self addchild:aa tag:1];
[aa runaction:[sequence:actions:animate1,[callfunc actionwithtarget:self selector:@selector(callmethods:)],nil]];
-(void)callmethods:(id)sender
{
[self removechild:[self getchildbytag:1] cleanup:yes];//if i removed this,"dealloc"is be callde;
}
Any advice would be much appreciated!