CocoStudioV1.2.0 + Cocos2d-x V2.2.2 ScrollView removeAllChildren问题

CocoStudioV1.2.0 + Cocos2d-x V2.2.2

ScrollView初始化时增加几个child, (child为UIPanel), 同时把这些Child保存到一个CCArray里面。

下一次更新该ScrollView时 先调用该ScrollView的removeAllChildren, 然后再把保存在CCArray里面的child修改内容后增加到该ScrollView里, 此时在下面的代码处报错:

CCAssert( child->m_pParent == NULL, “child already added. It can’t be added again”);

CocoStudioV1.1.0 + Cocos2d-x V2.2.1 没有这个问题。

楼主您好,这个是一个bug,目前已经修复,请查看这个帖子:http://www.cocoachina.com/bbs/read.php?tid=179914