简体   繁体   中英

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

I am trying to display a popover controller over 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). 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...

I have uploaded a project to GitHub which you can find here .

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM