gpt4 book ai didi

iphone - 要求用户通过 iphone 中的 exit(0) 重新启动应用程序?

转载 作者:行者123 更新时间:2023-11-28 18:39:38 25 4
gpt4 key购买 nike

我希望用户在我的应用程序中的某个时间点开始新 session ,所以我可以要求用户现在使用弹出窗口重新启动应用程序,如果他单击"is"。我使用 exit(0) 退出应用程序。它在苹果人类指南下有效吗?

最佳答案

绝对不是。来自Human Interface Guidelines :

Don’t Quit Programmatically

Never quit an iOS application programmatically because people tend to interpret this as a crash. However, if external circumstances prevent your application from functioning as intended, you need to tell your users about the situation and explain what they can do about it.

如果您想重置 session ,您应该有一种方法可以从应用内重置您的状态并返回到它的第一个屏幕(如果适用)。

关于iphone - 要求用户通过 iphone 中的 exit(0) 重新启动应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12813627/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com