多个模式视图可防止背景变暗/禁用 UIModalPresentationPageSheet
因此,当您在 iPad 上使用 UIModalPresentationPageSheet 演示样式呈现模态视图时,模态视图后面的视图将变暗并被禁用。但是,如果您的模式视图位于另一个(整页)模式视图之上,则似乎不会发生变暗/禁用。有人知道解决这个问题的方法吗?谢谢
So when you present a modal view with UIModalPresentationPageSheet presentation style on iPad, the view behind the modal view will get dimmed and will be disabled. However, if you have a modal view present on top of another (full page) modal view, it seems that the dimming/disabling does not happen. Anyone know of a way around this? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这一切都取决于使用哪个控制器来呈现模式视图控制器。我发现当使用 UISplitViewController 时,除了分割视图控制器本身不应用调光之外,从任何东西呈现模式视图控制器。我有兴趣看到更多复制您所描述内容的代码。
I think this all depends which controller is being used to present the modal view controller. I've found that when using
UISplitViewController
, presenting a modal view controller from anything the but the split view controller itself doesn't apply the dimming. I'd be interested to see more code replicating what you're describing.