当用户点击 iPhone 屏幕上的任意位置时,iOS7 中的 UIActionSheet 会消失

2024-04-28

我注意到在iOS 7 a **UIActionSheet** automatically dismisses when a user taps anywhere on the screen on an **iPhone**。 iOS 6 中并非如此,并且会导致意想不到的影响。Is this a UI change? Bug? Is there a way to disable this?

来自 iOS 7 文档: https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UIKitUICatalog.pdf
“正如 iOS 人机界面中所描述的 准则,您应该在操作表中包含一个“取消”按钮 在 iPhone 上显示的内容以及在 iPad 上显示的内容 弹出窗口。否则,在 iPad 上,操作表将显示在 弹出窗口,用户可以通过点击外部来取消操作表 弹出窗口,在这种情况下您不需要包含取消 按钮。”

这似乎表明,点击操作表之外的任何位置时的忽略行为应该只适用于 iPad。但现在运行 iOS 7 的 iPhone 上会发生这种情况,而运行 iOS 6 的 iPhone 上却不会发生这种情况


关于你的问题Is this a UI change? Bug?

It is seems like an UI change not a bug how can I say that ?
Have a look at the image i took from iOS7 simulator
It is a image of Maps application of iPhone. enter image description here


When you click on button ( display in red rectangle ) one action sheet will display which have Cancel button like below
enter image description here

如果你点击任何其他地方,它就会关闭,在其他苹果应用程序(如 Safari)中也发现了同样的行为。
关于你的问题Is there a way to disable this?
抱歉,但我没有答案。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

当用户点击 iPhone 屏幕上的任意位置时,iOS7 中的 UIActionSheet 会消失 的相关文章

随机推荐