[英]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.