Try this one :
[[CCDirector sharedDirector] pause];
UIAlertView *pauseAlert = [[UIAlertView alloc] initWithTitle:@"Game Paused" message:nil delegate:self cancelButtonTitle:@"CANCEL" otherButtonTitles:@"RESTART", nil];
[pauseAlert show];
Delegate Method..
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
NSLog(@"Cancel..");
}
else if (buttonIndex == 1)
{
NSLog(@"restart..");
[[CCDirector sharedDirector] resume];
}
}