cocos2d 2.x scene retainCount

Posted by Shefy Gur-ary on Stack Overflow See other posts from Stack Overflow or by Shefy Gur-ary
Published on 2012-09-08T09:36:28Z Indexed on 2012/09/08 9:37 UTC
Read the original article Hit count: 231

Filed under:
|

I'm pushing a scene to the game I'm working on, after pressing a button in the main menu.

This scene is a gameplayScene which should have two layers ad childs: boardLayer and hudLayer.

for now I'm testing with the boardLayer, I'm using block to call the gameplayScene to close both itself and the boardLayer, but by the time I get there the retain count of both layer is 3 (seems to be increasing after setting the block to 2, and I'm not sure when it is going up to 3)

What cause this, and how should it be handled?

© Stack Overflow or respective owner

Related posts about cocos2d-iphone

Related posts about retaincount