我们大家都是既然使用的阴影,或者我们常用的圆角那么我们就要操作layer 图层下面这些属性值 实在UIView基础之上来操作的layer属性方法:
self.layer.shadowColor = [UIColor blackColor].CGColor;//shadowColor阴影颜色
self.layer.shadowOffset = CGSizeMake(2,2);//shadowOffset阴影偏移,x向右偏移4,y向下偏移4,默认(0, -3),这个跟shadowRadius配合使用
self.layer.shadowOpacity = 0.8;//阴影透明度,默认0
self.layer.shadowRadius = 3;//阴影半径,默认3