一、加阴影且圆角
view.layer.cornerRadius = 7;
view.layer.shadowColor = [UIColor blackColor].CGColor;
view.layer.shadowOffset = CGSizeMake(1, 1);
view.layer.shadowOpacity = 0.5;
view.layer.shadowRadius = 2.0;
一、加阴影且圆角
view.layer.cornerRadius = 7;
view.layer.shadowColor = [UIColor blackColor].CGColor;
view.layer.shadowOffset = CGSizeMake(1, 1);
view.layer.shadowOpacity = 0.5;
view.layer.shadowRadius = 2.0;
本文标题:Layer的一些方法
本文链接:https://www.haomeiwen.com/subject/woryzqtx.html
网友评论