sammcewan / WYPopoverController

WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.
Other
252 stars 74 forks source link

Blurred transparent background? #19

Open tkach opened 9 years ago

tkach commented 9 years ago

Hi, @sammcewan ! Thanks for your work maintaining this awesome project. I wonder If it's possible to set blurred background to popover like it appears in iOS 7+ native popovers?

josipbernat commented 9 years ago

I was able to make popover transparent with blue border with this theme configuration. But my arrow was still white. Hope it helps even it's not blurred.

WYPopoverTheme *theme = [WYPopoverTheme theme];
[theme setFillTopColor:[UIColor clearColor]];
[theme setFillBottomColor:[UIColor clearColor]];
[theme setOuterStrokeColor:[UIColor blueColor]];
[theme setInnerStrokeColor:[UIColor clearColor]];
theme.borderWidth = 2.0f;
_wyPopoverController.theme = theme;