iPhone 4有自动数据持久化功能吗?
我加载了一些我一直使用 iPhone 3.1.3 Simulator 开发的应用程序项目。现在我得到了 4.0 包,由于某种原因,当我点击模拟器的主页按钮进入主屏幕然后返回应用程序时,它处于与我离开时相同的位置。现在这是标准的吗?如果我不想让它这样做怎么办?我宁愿每次都重新启动。
I loaded some app projects that I had been developing using the iPhone 3.1.3 Simulator. Now I got the 4.0 package, and for some reason when I hit the home button of the simulator to go the home screen and then go back to the app, it's in the same position as I left it. Is this now standard? What if I don't want it to do this? I'd rather have it restart every time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所描述的是快速应用程序切换,这是 iOS 4 中的新增功能。
如果您希望应用程序在用户每次按下主页按钮时退出,请添加
UIApplicationExitsOnSuspend
属性键入您的 info.plist 并将其设置为 YES(选中该框)。What you're describing is fast App switching, which is new in iOS 4.
If you want your application to quit each time the user presses the Home button, add the
UIApplicationExitsOnSuspend
property key to your info.plist and set it to YES (check the box).