iOS设置边框、圆角

来源:互联网 发布:数控车椭圆编程实例 编辑:程序博客网 时间:2024/06/06 21:04

iOS设置边框、圆角
(纯属个人笔记,无任何营养价值,勿喷)
cell.layer.cornerRadius = 4;
cell.layer.borderWidth = 0.5;
cell.layer.borderColor = [UIColor grayColor].CGColor;
cell.layer.masksToBounds = YES;

0 0
原创粉丝点击