Why is the child of a sprite places in the left bottom corner?

So i have a sprite with the anchor point set to 0.5 and 0.5

I added a cclabelttf as a child to it(with a position of 0.0), but the text is shown on the left bottom corner of the sprite!

A node’s anchor and position are how it interacts with it’s parent and nothing to do with it’s children, thus you should set the label’s anchor and position according to where you want it based on the sprite’s origin, not it’s anchor.

Also depending on the type of node, you may want to also:
aNode->ignoreAnchorPointForPosition( false );