如何将视图显示在所有其他视图之上?
我想在用户摇动手机时显示模态视图。我正在尝试 self.tabbarcontroller PresentModal...但这在已经打开模态视图的情况下不起作用(情况:用户正在单击,然后单击打开模态视图控制器的内容。现在,用户摇晃他/她的手机 - 现在应该在其他所有内容之上显示模式视图。)。
基本上,我想要做的是在所有其他打开的视图之上显示一个视图。我该怎么做?
谢谢!
I want to display a modal view when the user shakes the phone. I was trying self.tabbarcontroller presentModal... but this won't work in cases where there is already a modal view open (Case: User is clicking around, and he clicks something that opens a modal view controller. Now, the user shakes his/her phone - should display a modal view on top of everything else now.).
Basically, what I want to do is display a view on top of all the other open views. How do I do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将视图添加到主应用程序窗口。这将覆盖其下方的整个视图层次结构。
You can add the view to the main application window. That will overlay the whole view hierarchy below it.