iOS4通过代码从内存中删除应用程序 [英] iOS4 removing app from memory via code

查看:117
本文介绍了iOS4通过代码从内存中删除应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户点击主页按钮(为了退出应用程序)以传达到iOS4系统时,有没有办法(使用iOS4)不让应用程序在后台运行,而是从内存中完全删除应用程序(喜欢iPhone 3)?我的应用程序可能会显示敏感信息,我希望它完全退出。

Is there a way (with iOS4) when the user hits the home button (in order to exit an application) to convey to the iOS4 system to not keep the app running in the background but to remove the app completely from memory (like iPhone 3)? My app could potentially display sensitive information and I'd like for it to exit completely.

谢谢

推荐答案

尝试添加应用程序不在后台运行pList,我将其添加到我们的应用程序之一,它似乎每次都从头开始。尽管它仍然保留在任务管理器中。
因此,只要您的应用程序处理内存清除,您就可以了。

Try adding "Application does not run in background" too the pList, I added this to one of our app and it seems to start it from scratch every time..although it still keeps in task manager. So aslong as your app handles the clearing of memory you should be fine.

这篇关于iOS4通过代码从内存中删除应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆