开发者

iPhone + save state of application in case of any interruption

开发者 https://www.devze.com 2022-12-20 23:53 出处:网络
I have developed a game 开发者_高级运维as iPhone application. Everything is completed and I am ready to upload it on App Store. I need to implement only one feature and that is, when any interruption

I have developed a game 开发者_高级运维as iPhone application. Everything is completed and I am ready to upload it on App Store. I need to implement only one feature and that is, when any interruption occurs like a phone call / a sms / a notification, I want to save the current state of game so that whatever user chooses: either to handle that interruption or to cancel that interruption, the game should start again from the same stage. How might I do this?


Handle the

- (void) applicationWillTerminate: (UIApplication *) application

message in your UIApplicationDelegate. See the docs.

0

精彩评论

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