UIPoover 锁定背景视图
我正在尝试复制 iPad 密码视图。它基本上是一个没有箭头方向的弹出窗口,它锁定背景视图,有点像模态视图控制器。
我的问题:有没有办法在呈现弹出窗口时锁定底层背景视图。
我的想法:我能想到的唯一真正的解决方案是将弹出窗口放置在模态视图控制器中。并以这种方式呈现它。
想法?
I am trying to replicate the iPad passcode view. Which basically is a popover with no arrow direction, that locks the background view kinda like a modal view controller.
My question: Is there a way to lock the underlying background view when presenting a popover.
My idea: The only real solution that i could come up with is placing that popover inside a modal view controller. and presenting it that way.
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用视图控制器的 modalInPopover 属性: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#// apple_ref/doc/uid/TP40006926-CH3-SW72
这个问题提供了一些有关制作没有箭头的弹出窗口的信息,尽管尚不清楚它是否正确:没有任何箭头的 UIpopover
Use the
modalInPopover
property of your view controller: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006926-CH3-SW72This question provides some information on making a popover with no arrows, though it's not clear whether it's correct or not: UIPopover without any arrows