How to iterate in cocos2d-x v2.0

How to iterate in cocos2d-x v2.0
0.0 0


Sorry very new into here.
Just realize that v 2.0 deprecate CCMutableArrayIterator…

I’m trying to follow collision detection tutorial, don’t know how to translate this…

CCMutableArray<CCSprite*>::CCMutableArrayIterator it, jt;

Into cocos2d-x 2.0

Thanks in advance, and this wonderfull Framework…

CCObject *item;
        CCSprite *s = dynamic_cast(item);
        // to something

CCSprite here is just a sample, you can use any child class of CCObject in CCArray.


Thanks very much