iPad 上 UIActionSheet 上的“取消”按钮

发布于 2024-11-29 05:34:27 字数 322 浏览 0 评论 0原文

iOS 人机界面指南表示,在 iPad 上“当操作表在没有动画的情况下显示时,不要包含取消按钮,因为人们可以点击弹出框外部来关闭操作表,而无需选择其他选项之一”。因此,在这些情况下不会显示“取消”按钮。

这不直观。人们习惯于在显示可取消的操作时看到“取消”选项,如果没有看到该选项,他们可能会感到困惑。他们可能没有意识到点击弹出窗口外部意味着取消。

“单击窗口外部取消”的推理也可以用于 PC 和 Mac,但事实并非如此。这些系统中会显示取消按钮。

我倾向于添加一个人工取消按钮,但我担心这违反了 Apple HIG 政策,并且我的应用程序将被拒绝。

你怎么认为?

The iOS Human Interface Guide says that on an iPad "Do not include a Cancel button when the action sheet is displayed without animation, because people can tap outside the popover to dismiss the action sheet without selecting one of the other alternatives". As a result, the Cancel button is not shown in these cases.

This is NOT intuitive. People are used to seeing a Cancel option whenever an action that can be cancelled is shown, and they may get confused if they don't see one. They may not realize that tapping outside the popver means Cancel.

The reasoning of "clicking outside the window to cancel" could have been used for PCs and Macs as well, but it isn't. A Cancel button is displayed in these systems.

I'm inclined to include an artificial Cancel button, but I'm afraid that this is against Apple HIG policy and my App will be rejected.

What do you think?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千柳 2024-12-06 05:34:27

作为一个刚刚遇到同样问题的人,我同意。这根本不直观!

至于 Apple 的建议

  • “不要包括当操作表在没有动画的情况下显示时,会出现取消按钮,因为人们可以点击弹出窗口外部来关闭操作表,而无需选择其他选项之一。” (p121)
  • “动画操作表应包含取消按钮,因为人们需要能够在不关闭弹出窗口的情况下关闭操作表”(p121)

如果您不遵循这些准则,Apple 会拒绝您的应用程序吗?这个答案可能会提供一些见解:

Apple 会拒绝吗如果我不这样做,我的应用程序会怎样?

As someone who just encountered the same issue, I agree. It's not intuitive whatsoever!

As for Apple's recommendations

  • "Do not include a Cancel button when the action sheet is displayed without animation, because people can tap outside the popover to dismiss the action sheet without selecting one of the other alternatives." (p121)
  • "An animated action sheet should include a Cancel button, because people need to be able to dismiss the action sheet without closing the popover" (p121)

Will Apple reject your app if you don't follow these guidelines? This answer may offer some insight:

Will Apple reject my app if I do not do this?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文