nicolaschengdev / WYPopoverController

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

unable to set transparent background #147

Open khoudor84 opened 10 years ago

khoudor84 commented 10 years ago

I want to create transparent popup. I can't get rid of white background. I am using ios8 (maybe the bug is here :). I got a lot of white backgrounds in different views after upgrade).

I am doing it like this: [WYPopoverController setDefaultTheme:[WYPopoverTheme theme]]; WYPopoverBackgroundView *appearance = [WYPopoverBackgroundView appearance]; [appearance setBackgroundColor:[UIColor clearColor]]; [appearance setArrowHeight:0]; [appearance setOuterCornerRadius:0]; [appearance setInnerCornerRadius:0]; [[[GlobalManager manager] peVC] setPopOver:[[WYPopoverController alloc] initWithContentViewController:psVC]];

tkach commented 10 years ago

Hi! Try setting

[appearance setFillTopColor:[UIColor clearColor]];
[appearance setFillBottomColor:[UIColor clearColor]];