开发者

How to resume my game after call ended

I have developed a game. When i checked in iphone, i found that my game pause when an incoming call comes and restarts after 开发者_如何转开发attending and ending the call. How to make it resume instead of restart


Try checking the AppDelegate.m for this:

- (void)applicationWillResignActive:(UIApplication *)application {
[[CCDirector sharedDirector] pause];
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
[[CCDirector sharedDirector] resume];
}

That usually "pauses" the current scene when the application is interupted...say for a phone call. If this doesn't help...maybe you could eyplain your problem further. greetings

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜