UIView的阴影设置主要通过UIView的layer的相关属性来设置
阴影的颜色
imgView.layer.shadowColor = [UIColor blackColor].CGColor;
阴影的透明度
imgView.layer.shadowOpacity = 0.8f;
阴影的圆角
imgView.layer.shadowRadius = 4.f;
阴影偏移量
imgView.layer
UIView的阴影设置主要通过UIView的layer的相关属性来设置
阴影的颜色
imgView.layer.shadowColor = [UIColor blackColor].CGColor;
阴影的透明度
imgView.layer.shadowOpacity = 0.8f;
阴影的圆角
imgView.layer.shadowRadius = 4.f;
阴影偏移量
imgView.layer