COCOS2D-X 3.0 : Take Screenshot and save to Iphone Photo Album: How To?

Can anyone please tell me how to take a screenshot in cocos2d-x 3.0 and save it to Iphone’s Photo Gallery .
Rendertexture->UIIMage conversion is not so obvious in the latest iteration of cocos2dx

bump! anyone??