martinjuhasz / MJPopupViewController

A UIViewController Category to display a ViewController as a popup with different transition effects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Background persists even with UI colour of 0.0, 0.0, 0.0,0.0

sbiggerstaff opened this issue · comments

Hi there,

I'm trying to get the popup to show rounded corners, and have a graphic to use with a UI Image and simply create a UIColour with 0 alpha and set the background of the popup to this colour in MJDetailViewController. However I'm still getting a shadow with square edges when I do this.

Code is simply:
backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0];
self.view.backgroundColor = backgroundColor;
Screen Shot 2013-03-27 at 16 22 46

you could try setting a mask to the views layer where the dropshadow is added.

yourViewWithShadow.layer.masksToBounds = YES;

Hi there, sorry for the late reply. This didn't work. I tried both adding it in the MJDetailViewController in the viewDidLoad and also the UIViewController+MJPopupViewController.m