How to Pause and Resume a Cocos2D game ?

By | April 28, 2012

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];
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *