主页按钮最小化应用程序
我使用 sdk 4 创建了一个小应用程序,应用程序工作得很好,但是当用户点击主页按钮退出并返回时,应用程序不会进入主屏幕,它会从状态(屏幕),用户点击主页按钮。我怎样才能重置它?
I have created a small app using the sdk 4, app works perfectly fine, but when the user hits the home button to exit and when he comes back, the app doesn't go to the home screen, it continues from the state (screen) which the user hit the home button. How can I reset it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将此条目添加到
info.plist
,“应用程序不在后台运行”
并勾选它。
Add this entry to
info.plist
,'Application does not run in background'
And tick it.
该信息目前处于 NDA 状态。请查看 Apple 文档,它将向您展示如何在应用程序从多任务处理恢复时修改它。
This information is currently under NDA. Please check the Apple documentation, and it will show you how to modify your application when it resumes from multitasking.
苹果公司已经公开宣布iOS4支持多任务处理。现在,当您点击主页按钮时,应用程序不会终止,而是进入后台。当您再次点击应用程序图标时,应用程序将从后台恢复,而不是从头开始启动。
更详细的信息仍在 NDA 中,但这应该可以告诉您您的应用程序发生了什么。
Apple has publicly announced that iOS4 supports multitasking. Now when you hit the home button, the app does not terminate but instead goes into the background. When you hit the app icon again, the app resumes from background instead of launching from scratch.
More detailed information is still under NDA but that should tell you what is happening with your app.