Hello
Is it correct to call [[CCDirector sharedDirector] stopAnimation]; after [[CCDirector sharedDirector] pause]; ???
I'm asking just because
- (void)applicationWillResignActive:(UIApplication *)application
{
[[CCDirector sharedDirector] pause];
}
is called before
-(void) applicationDidEnterBackground:(UIApplication*)application
{
[[CCDirector sharedDirector] stopAnimation];
}
is it safe to put pause and stopAnimation in applicationDidEnterBackground only?
applicationDidBecomeActive is called when the app starts up, is ok to call [[CCDirector sharedDirector] resume]; even if it was not in background??
I'm trying to understand the reason why my app crashes when it enters in foreground.