Search code examples
iosipadios7uipopovercontroller

Turning off dimming by UIPopoverController


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?


Solution

  • 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.