Search code examples
iosobjective-cuiviewshadowmmdrawercontroller

Shadows appear behind subviews when UIViewController.view is clear


I am using MMDrawerController. It is a control that allows center, left and right viewcontrollers. I want to have one background image showing while all three view controllers have a clear background. I have that in place, but the problem is that my subviews all have black shadow behind it. Is there a way to remove all the subviews shadow?

Shadow


Solution

  • Looking into the MMDrawerController, check out the property showsShadow. Try setting it to NO when you load the MMDrawerController. It looks like it affects the center view controller. You can also try changing (MMDrawerController.m lines 37/38)

    CGFloat const MMDrawerDefaultShadowRadius = 10.0f;
    CGFloat const MMDrawerDefaultShadowOpacity = 0.8;