I’ve been working on an application for a couple of years and received a simple design request: Round the corners on a UIView and add a drop shadow.To do as given below.
Here is the solution for masksToBounds conflict problem, it works for me.
After you set the corderRadius/borderColor/shadow and so on, set masksToBounds as NO:
v.layer.masksToBounds = NO;