如何强制使app重启呢,查找后发现这个行为并不被Apple允许
参考:https://stackoverflow.com/questions/4399611/force-iphone-app-to-restart-programmatically
You can't actually force it to restart. You could force it to die, but you'll probably get rejected for it. Instead you should design your app so that you can programmatically clear out all the data state and reset it yourself.
虽然回答下还介绍了其他方法,但好像还有点其他问题,还没一一尝试.
本文探讨了在iOS平台上强制应用重启的技术限制,Apple不允许开发者直接重启应用。文章引用了Stack Overflow上的讨论,指出设计应用时应考虑自行清理状态并重置,而非依赖于重启机制。
985

被折叠的 条评论
为什么被折叠?



