How to Pause and Resume a Cocos2D game ?

Hi,

For pausing a cocos2D game, then use the following line of code.

 [[CCDirector sharedDirector] pause];

For resuming a cocos2D game, then use this line of code.

[[CCDirector sharedDirector] resume];