diff --git a/template/multi-platform-cpp/proj.ios_mac/ios/AppController.mm b/template/multi-platform-cpp/proj.ios_mac/ios/AppController.mm index 08a83f6b99..38f7c3861a 100644 --- a/template/multi-platform-cpp/proj.ios_mac/ios/AppController.mm +++ b/template/multi-platform-cpp/proj.ios_mac/ios/AppController.mm @@ -88,14 +88,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/template/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm b/template/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm index 6e1d42e9c0..c833c036f8 100644 --- a/template/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm +++ b/template/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm @@ -91,14 +91,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/template/multi-platform-js/proj.ios_mac/ios/AppController.mm b/template/multi-platform-js/proj.ios_mac/ios/AppController.mm index bc1c8bc57b..06d659ddcf 100644 --- a/template/multi-platform-js/proj.ios_mac/ios/AppController.mm +++ b/template/multi-platform-js/proj.ios_mac/ios/AppController.mm @@ -90,14 +90,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/template/multi-platform-lua/proj.ios_mac/ios/AppController.mm b/template/multi-platform-lua/proj.ios_mac/ios/AppController.mm index 7bc89f9022..d0a96a28ec 100644 --- a/template/multi-platform-lua/proj.ios_mac/ios/AppController.mm +++ b/template/multi-platform-lua/proj.ios_mac/ios/AppController.mm @@ -88,14 +88,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic + /* cocos2d::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/tests/test-cpp/proj.ios/Classes/testsAppDelegate.mm b/tests/test-cpp/proj.ios/Classes/testsAppDelegate.mm index 43bedbcabb..963ac7f9e1 100644 --- a/tests/test-cpp/proj.ios/Classes/testsAppDelegate.mm +++ b/tests/test-cpp/proj.ios/Classes/testsAppDelegate.mm @@ -95,14 +95,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/tests/test-javascript/proj.ios/AppController.mm b/tests/test-javascript/proj.ios/AppController.mm index 6e1d42e9c0..2a47709d30 100644 --- a/tests/test-javascript/proj.ios/AppController.mm +++ b/tests/test-javascript/proj.ios/AppController.mm @@ -91,14 +91,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication *)application { diff --git a/tests/test-lua/proj.ios/AppController.mm b/tests/test-lua/proj.ios/AppController.mm index c7d5d8312f..0fc73a9c04 100644 --- a/tests/test-lua/proj.ios/AppController.mm +++ b/tests/test-lua/proj.ios/AppController.mm @@ -89,14 +89,16 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); +//We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + //We don't need to call this method any more. It will interupt user defined game pause&resume logic +// cocos2d::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication *)application {