UIPoover 锁定背景视图

发布于 2024-09-16 21:23:17 字数 167 浏览 6 评论 0原文

我正在尝试复制 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界如花海般美丽 2024-09-23 21:23:17

使用视图控制器的 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-SW72

This 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文