从一开始就重新启动iPhone应用程序 [英] Restart iphone application from the very beginning

查看:39
本文介绍了从一开始就重新启动iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我关闭应用程序(通过HOME按钮)并再次将其打开时,如何强制应用程序从最开始的视图而不是从显示的最后一个位置(关闭之前)重新启动?是项目中的设置吗?

when i close my application (via HOME button) and open it up again, how do i force the application to restart from the very beginning view and not from the last location that was shown (before it was closed)? is it a setting in the project?

推荐答案

设置应用程序的info.plist键:UIApplicationExitsOnSuspend为True.

Set the app's info.plist key: UIApplicationExitsOnSuspend to True.

这篇关于从一开始就重新启动iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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