iOS 操作表
我在我的一个应用程序中使用 UIActionSheet,我有一个问题。当操作表出现在前面时,其他所有内容都会进入后台,并且我无法再与视图中的按钮或其他对象进行交互,直到我关闭操作表。有没有办法禁用此功能?我的意思是,如果我显示了操作表,我仍然可以使用后台的内容吗?如果有办法,如果您能告诉我如何做,我将非常感激。
I'm using UIActionSheet in one of my applications and I have a question . When the action sheet comes to front , everything else goes in background and I cannot interact anymore with my buttons or other objects in my view until I dismiss the action sheet . Is there a way to disable this feature ? I mean , if I have the action sheet displayed , can I still be able to use what goes in background ? If there is a way , I would really appreciate if you could show me how to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果
UIActionSheet
或UIAlertView
位于前面,则无法访问后台控件。There is no way to access the Background controls, If the
UIActionSheet
orUIAlertView
comes to the front.操作表应该是模态的。所有用户输入都将被操作表捕获,直到它被关闭为止。所以所有的后台控件在消失之前都无法被用户交互。
The action sheet is supposed to be modal. All user input will be captured by the action sheet until it is dismissed. So all the background controls cannot be interacted with by the user until it is gone.