UIActionSheet在iOS7中,当用户在iPhone屏幕上轻敲ANYWHERE时关闭 [英] UIActionSheet in iOS7 dismissing when user taps ANYWHERE on the screen on iPhone

查看:181
本文介绍了UIActionSheet在iOS7中,当用户在iPhone屏幕上轻敲ANYWHERE时关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到在 iOS 7 a ** UIActionSheet **自动关闭当一个用户点击屏幕上的任何地方** iPhone ** 。这不是在iOS 6中的情况,并导致意想不到的效果。 这是一个UI更改吗? Bug?是否有方法禁用此功能?

I've noticed that in iOS 7 a **UIActionSheet** automatically dismisses when a user taps anywhere on the screen on an **iPhone**. This was NOT the case in iOS 6 and is leading to unintended effects. Is this a UI change? Bug? Is there a way to disable this?


从iOS 7文档:
如iOS人机界面
指南,您应该包括一个取消按钮,其中显示在iPhone上的操作表
,以及在打开的
popover上显示的操作表,否则在iPad上,操作表显示在
popover,并且用户可以通过点击外部
popover来取消操作表,在这种情况下,您不需要包括一个Cancel
按钮。

From iOS 7 docs:
"As described in iOS human interface guidelines, you should include a Cancel button with action sheets displayed on iPhone and with those displayed on iPad over an open popover. Otherwise on iPad, action sheets are displayed within a popover, and the user can cancel the action sheet by tapping outside the popover, in which case you do not need to include a Cancel button."

这似乎表明,当点击操作表之外的任何地方时,关闭的行为应该仅适用于iPad。但是现在发生在运行iOS 7的iPhone上,而不是在运行iOS 6的iPhone上。

This seems to suggest that the behavior of dismissing when tapping anywhere outside the action sheet should only pertain to iPads. But this is now happening on an iPhone running iOS 7 when it doesn't on an iPhone running iOS 6

推荐答案

这是一个UI更改吗? $

看起来像是 UI变更不是错误我怎么说呢?
看看我从iOS7模拟器拍摄的图像

这是iPhone的地图应用程序的图像。

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.

< br>当您点击按钮(以红色矩形显示)时,一个操作表将显示,其中有如下所示的取消按钮


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

如果您点击任何其他地方会关闭,同样的行为也发现在其他苹果应用程序也喜欢safari。


关于您的问题是否有方法禁用此功能?

对不起,我没有答案

And if you click any where else it will close, same behaviour also found in other Apple applications also like safari.
Regarding your question Is there a way to disable this?
Sorry but i don't have answer for that.

这篇关于UIActionSheet在iOS7中,当用户在iPhone屏幕上轻敲ANYWHERE时关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆