I have a UIView mainView, I've added 4 buttons in each corners as subviews. I added shadow to my mainView like this
mainView.layer.shadowColor = [[UIColor blackColor] CGColor];
mainView.view.layer.shadowOffset = CGSizeMake(0,6);
mainView.layer.shadowOpacity = 0.3;
My problem is that subviews show shadows (the buttons) too. How to hide subviews shadows. Thanks in advance.