UIPopover锁定背景视图 [英] UIPopover locking background view

查看:108
本文介绍了UIPopover锁定背景视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试复制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.

我的想法:我能想到的唯一真正的解决方案是将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.

想法?

推荐答案

使用视图控制器的 modalInPopover 属性: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference。 html#// apple_ref / doc / uid / TP40006926-CH3-SW72

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

这个问题提供了一些关于制作没有箭头的弹出窗口的信息,尽管它不是明确是否正确:没有任何箭头的UIPopover

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

这篇关于UIPopover锁定背景视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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