简体   繁体   English

在iPhone上保存应用程序状态

[英]Saving app state on iphone

I'm developing a word game for iphone. 我正在为iphone开发一款文字游戏。 Now that IOS has multitasking, do I definitely have to save the game state when the game is interrupted? 既然IOS具有多任务处理功能,那么当游戏中断时,我是否一定要保存游戏状态?

Your app can be unloaded by iOS whenever it decides to do so. 您可以决定何时通过iOS卸载您的应用。 Low memory, the user forces the app to close, etc. 内存不足,用户强制关闭应用程序等。

Yes, you should save your game state if you want to be able to reinstate it when the app launches from scratch. 是的,如果您希望能够在应用从头启动时恢复游戏状态,则应该保存游戏状态。

You may want to look into three20's persistance 您可能要研究Three20的持久性

http://three20.info/showcase/persistence http://three20.info/showcase/persistence

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM