[英]How to turn Off iPhone application when enters in background?
I have made an iPhone application. 我制作了一个iPhone应用程序。 When my application enters in background.
当我的应用程序进入后台时。 I want to turn off fully my iPhone application,and when i again start my iPhone application it should starts from the starting page,it should not start from where i left.
我想完全关闭我的iPhone应用程序,当我再次启动我的iPhone应用程序时,它应该从起始页面开始,它不应该从我离开的地方开始。 I have used exit(0),but i think it is not recommended by Apple.
我使用了退出(0),但我认为它不是Apple推荐的。 Please provide some suitable solution soon.
请尽快提供一些合适的解决方案
You can achieve it by modifying your info.plist
file. 您可以通过修改
info.plist
文件来实现它。
add this Key "Application does not run in background" and set its value to "YES" 添加此密钥“应用程序不在后台运行”并将其值设置为“YES”
This should get you going! 这应该让你去!
Let me know if it solves:) 如果它解决了,请告诉我:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.