How to add a dull background UIPopOverController in iOS 9. (iPad)

Before iOS 9 apple iPad popOver was shown with a dull background. But in iOS 9, when popOver is displayed, it never reduces the background mode. I want to also reduce the background view in iOS 9. Any solution.

+7
ios objective-c ios9 ipad uipopovercontroller
source share
1 answer

What have you tried and what does your code look like?

I would create a full-screen UIView with a translucent background color and alpha 0. Before introducing popover, set its alpha to 1. After the popover is fired, set alpha back to 0 so that it disappears.

See here to create a view: How do I make a translucent layer above the current view?

You can place the view inside the animation block to animate the change.

To restrict use for> iOS 8, use validation as described in this answer: How to verify the version of iOS?

0
source share

All Articles