How to rotate CCNode from it's center point.

I rotate a CCNode from it’s center point like this. But It does not working. It rotate by its left bottom point. How can I fix this rotation.
CCNode* pBall = ……………….;
pBall~~>setAnchorPoint);
CCRotateTo* pRotation = CCRotateTo::create;
pBall~~>runAction(pRotation);

Whats in your CCNode?

You might need to explicitly set the contentSize of the node before rotating it.
It might be rotating round what it thinks is the centre.

I had issues where adding stuff did not calculate the size correctly.