开发者

Cancel button on UIActionSheet on iPad

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 i开发者_开发知识库t 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?


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜