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.
I have also fetch the same problem and found the solution of this issue.
EX: In above Questions
mainView.backgroundColor = UIColor.white
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With