这个在3.x要怎么改?

想做一个弹出框
找到这文章http://blog.sina.com.cn/s/blog_705a5ff00101ox4s.html
但是是2.x 的。我想改成3.x的
头大。。。

//Vector<cocos2d::Node >
CCArray
array = getMenuButton()->getChildren();
Object* pObj = NULL;
int i = 0;
CCARRAY_FOREACH(array, pObj)
{
CCNode* node = dynamic_cast<CCNode*>(pObj);
node->setPosition(Point(winSize.width / 2 - contentSize.width / 2 + btnWidth * (i + 1), winSize.height / 2 - contentSize.height / 3));
i++;
}

这个在3.x要怎么改?

CCArray可以换为vector,Object现在是Ref,循环遍历改成迭代器的,CC前缀的东西都要去掉前缀,Point用Vec2,基本就是这些吧