Create a method and use it as shown below
You can use this.
+(UIImage*) screenshotWithStartNode:(CCNode*)stNode
{
[CCDirector sharedDirector].nextDeltaTimeZero = YES;
CGSize winSize = [[CCDirector sharedDirector] winSize];
CCRenderTexture* renTxture =
[CCRenderTexture renderTextureWithWidth:winSize.width
height:winSize.height];
[renTxture begin];
[stNode visit];
[renTxture end];
return [renTxture getUIImage];
}
Call like this
CCScene *myScene = [[CCDirector sharedDirector] runningScene];
CCNode *node = [myScene.children objectAtIndex:0];
UIImage *img = [AppController screenshotWithStartNode:node];