[英]Swift launch app when applicationWillTerminate
I wanna launch my app when plugged-in on iOS devices but i don't find any solution how can i do it. 我想在iOS设备上插入时启动我的应用程序,但我找不到任何解决方案我该怎么办。 I wonder, does Apple allow launching application in applicationWillTerminate function?
我想知道,Apple是否允许在applicationWillTerminate函数中启动应用程序?
Thanks for your interest. 谢谢你的关注。
Regards. 问候。
This method lets your app know that it is about to be terminated and purged from memory entirely.
此方法可让您的应用知道它即将被终止并完全从内存中清除。
Source: API Reference
来源: API参考
applicationWillTerminate:
tells you that you app needs to be killed by the system. applicationWillTerminate:
告诉您应用程序需要被系统杀死。 Since this won't happen just for fun, Apple won't allow you to restart the app automatically ;-) 由于这不会只是为了好玩而发生,Apple不会允许您自动重启应用程序;-)
Apart from that, I think there is no (public) function at all, that allows you to launch an app programmatically. 除此之外,我认为根本没有(公共)功能,允许您以编程方式启动应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.