在 iOS7 中,弹出窗口会使屏幕的其余部分变暗。根据 the Apple docs :
The popover content is layered on top of your existing content and the background is dimmed automatically.
这在大多数情况下都很好,但我有一个应用程序,当弹出窗口打开并保持响应时,屏幕会自行重新排列,因此调暗只会造成困惑。有人知道是否可以禁用调光吗?
最佳答案
API 中似乎没有任何支持它的东西——您可以设置 passthroughViews
属性以允许在弹出窗口打开时与其他 View 进行交互,但这不会影响调光。您可能需要推出自己的弹出窗口实现或寻找第三方版本。
关于ios - 通过 UIPopoverController 关闭调光,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20550550/