通过UIPopoverController关闭调光 [英] Turning off dimming by UIPopoverController

查看:104
本文介绍了通过UIPopoverController关闭调光的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS7中,弹出窗口会使屏幕的其余部分变暗。根据 Apple文档

In iOS7, a popover causes the rest of the screen to be dimmed. As per the Apple docs:


弹出式内容在现有内容之上分层,背景自动变暗。

The popover content is layered on top of your existing content and the background is dimmed automatically.

在大多数情况下,这很不错,但我有一个应用程序,当弹出窗口打开并保持响应时屏幕重新排列,因此调暗只会引起混乱。任何人都知道是否可以禁用调光?

This is nice in most cases, but I have an app where the screen rearranges itself when the popover opens and stays responsive, so the dimming only causes confusion. Anyone knows if dimming can be disabled?

推荐答案

看起来API中没有任何内容可以支持 - 您可以设置 passthroughViews 属性允许其他视图在弹出窗口打开时进行交互,但这不会影响调光。您可能必须推出自己的popover实现或查找第三方版本。

Doesn’t look like there’s anything in the API to support that—you can set the passthroughViews property to allow other views to be interacted with while the popover’s open, but that doesn’t affect the dimming. You may have to roll your own popover implementation or find a third-party version.

这篇关于通过UIPopoverController关闭调光的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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