how to convert CCRenderTexture to UIImage in ios in ver 2.x

how to convert CCRenderTexture to UIImage in ios in ver 2.x
0.0 0

#1

cocos2d-x ver. 2.x
I can create the CGDataProvderRef to create image, who know the easy one?