Is there any example code of scale a picture by multi touch action?

If I want to use two fingers to scale a picture, and then use one finger to drag the picture to see the details of the picture, is there any example code of this function which I mentioned?

There are examples on Apple social documents. About cocos2d-x, I don’t know if it exists.