简体   繁体   English

UIPopoverController与UISplitViewController上的UIVisualEffectView-iPhone 6 plus上的背景不会变得模糊

[英]UIPopoverController with UIVisualEffectView over UISplitViewController - background is not getting blurred on iPhone 6 plus

I am trying to display a popover controller over UISplitViewController. 我试图在UISplitViewController上显示一个弹出控件。

The popover is displayed correctly. 弹出窗口显示正确。 However, the visual effect view, which I have added to it, is not being displayed correctly on iPhone 6 plus (the background is not getting blurred). 但是,我添加到其中的视觉效果视图在iPhone 6 plus上无法正确显示(背景没有模糊)。 Here is the result which I am getting: 这是我得到的结果:

在此处输入图片说明

I have no clue how to resolve this issue. 我不知道如何解决此问题。

The most similar question I was able to find is this . 我能够找到的最相似的问题是这个 However, none of the solutions worked for me. 但是,没有一种解决方案对我有用。

I have also tried modifying the presentation styles but it does not help as well. 我也尝试过修改演示文稿的样式,但这并没有帮助。 Setting the background for popover to clearColor also doesn't help... 将弹出clearColor的背景设置为clearColor也无济于事...

I have uploaded a project to GitHub which you can find here . 我已经将一个项目上传到GitHub,您可以在这里找到。

Thanks in advance for any help or suggestions! 在此先感谢您的帮助或建议!

This is the normal behaviour, if you want to blur the background while the popup is presented, you should use UIPresentationController and it's delegates. 这是正常的行为,如果要在显示popup使背景模糊,则应使用UIPresentationController及其委托。

You can find the documentation here and a top notch tutorial here . 你可以找到的文件在这里和一个顶尖的教程在这里

Here you will find an example of what you're trying to achieve. 在这里,您将找到您要实现的目标的示例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UIVisualEffectView蒙版在iPhone 7 Plus Simulator上不起作用 - UIVisualEffectView Mask not working on iPhone 7 Plus Simulator UISplitViewController:在iPhone 6 Plus上旋转崩溃 - UISplitViewController: Crash on rotating on iPhone 6 Plus UISplitViewController - 防止iPhone 6 plus上的横向分割 - UISplitViewController - prevent splitting in landscape on iPhone 6 plus iPhone 6 Plus UISplitViewController递归_canBecomeDeepestUnambiguousResponder崩溃 - iPhone 6 Plus UISplitViewController crash with recursive _canBecomeDeepestUnambiguousResponder 旋转期间 UISplitViewController 和 UISearchController 的 iPhone 6 Plus Autolayout 问题 - iPhone 6 Plus Autolayout issue with UISplitViewController and UISearchController during rotation 在iPhone 6 Plus上解散UISplitViewController popover时,UIWebView被拉伸 - UIWebView stretched when dismissing UISplitViewController popover on iPhone 6 Plus 强制UISplitViewController始终以横向显示主(仅限)(在iPhone 6 Plus上) - Force UISplitViewController to always show master (only) in landscape (on iPhone 6 Plus) Universal Storyboard中的UISplitViewController不会在iPhone 6 Plus的屏幕上显示 - UISplitViewController in Universal storyboard doesn't show both on screen on iPhone 6 Plus iPhone Plus:为什么UISplitViewController在横向显示两个控制器? - iPhone Plus: why is UISplitViewController showing both controllers in landscape? SKSpriteNode的精灵仅在iPhone 7 Plus真机上模糊 - Sprites of SKSpriteNode are blurred only on the iPhone 7 Plus real machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM