gpt4 book ai didi

ios - 在 IOS 中实现免责声明屏幕的策略

转载 作者:行者123 更新时间:2023-11-29 11:09:15 25 4
gpt4 key购买 nike

在 IOS 中,您不允许以编程方式退出应用程序(我个人认为这很可笑)。

在我的应用程序中,我打算显示一个带有一些法律文本和同意和不同意按钮的免责声明屏幕。当用户同意时,将显示应用程序的主菜单。当他们不同意时,我希望该应用程序关闭。我打算仅在首次使用应用程序且同意免责声明时显示一次。

但是,您不能以编程方式关闭应用程序,因为 Apple 不喜欢它。所以

1) 这不是开发人员需要关闭功能的充分理由吗?

2) 我有什么可用且优雅的选择?

最佳答案

Human Interface Guidelines , Apple 建议不要以编程方式退出并提供两种选择:

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. Depending on how severe the application malfunction is, you have two choices.

Display an attractive screen that describes the problem and suggests a correction. A screen provides feedback that reassures users that there’s nothing wrong with your application. It puts users in control, letting them decide whether they want to take corrective action and continue using your application or press the Home button and open a different application

If only some of your application's features are not working, display either a screen or an alert when people activate the feature. Display the alert only when people try to access the feature that isn’t functioning.

因此,我会选择符合第一个选项的内容,并说“您必须接受本协议(protocol)的条款才能继续。”

关于ios - 在 IOS 中实现免责声明屏幕的策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12250864/

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