ios - Does removeFromParent on SKNode destroy the instance? -


By reading Apple's documentation about the removal, it says:

"The recipient node Removes from the guardian. "

Does this mean that the node is destroyed? Do I have to set the node to clear my memory?

An object (under ARC) is issued when there is no solid reference on it A node is a child, it is a strong reference, by removing the node, usually the node will be released until there is no solid reference anywhere else.

You can easily verify it by - (zero) dealloc and set a breakpoint or NSLog statement in it.


Comments