self.contentView.layer.borderWidth =1;
self.contentView.layer.cornerRadius = 10;
self.contentView.layer.borderColor= [[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor];
[self.contentView.layer setShadowOffset:CGSizeMake(5, 5)];
[self.contentView.layer setShadowOpacity:0.6];
[self.contentView.layer setShadowColor:[UIColor blackColor].CGColor];一段关于带阴影的UIView切圆角的代码
最新推荐文章于 2021-08-30 16:29:56 发布
本文详细介绍了如何使用Objective-C为自定义视图设置边框宽度、圆角、边框颜色以及阴影效果,包括阴影偏移、透明度和颜色的调整。
1万+

被折叠的 条评论
为什么被折叠?



