Is it safe to call [n removeFromParent]; after the parent to n has been released (and thus does not exist)?
I guess n.parent will be nil at that point.
Do I have to do something like
if (n.parent != nil)
[n removeFromParent];
For reference:
[n removeFromParent];directly bcos objective-c will able to handle this internally. However for your satisfaction you can check the parent before executing the method[n removeFromParent];. - Vijay Masiwal