I have a UIView mainView, I added 4 buttons in each corner as subtitles. I added a 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 also display shadows (buttons). How to hide shadow shadows. Thanks in advance.
source share