您的位置:首页 > 产品设计 > UI/UE

一段关于带阴影的UIView切圆角的代码

2011-08-09 09:29 274 查看
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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: