您的位置:首页 > 移动开发 > Swift

Swift - UIView,UItableView,Cell设置边框方法

2016-12-20 14:05 1131 查看
// 设置边框的宽度

cell.layer.borderWidth = 1

// 设置边框的颜色

cell.layer.borderColor = UIColor.blackColor().CGColor

// 设置UIView的边框为圆角和展现

cell.layer.cornerRadius = 10

//自动遮罩不可见区域,超出的不显示

cell.layer.masksToBounds = true

cell.backgroundColor = UIColor.whiteColor()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: