Swift - UIView,UItableView,Cell设置边框方法
2016-12-20 14:05
1206 查看
// 设置边框的宽度
cell.layer.borderWidth = 1
// 设置边框的颜色
cell.layer.borderColor = UIColor.blackColor().CGColor
// 设置UIView的边框为圆角和展现
cell.layer.cornerRadius = 10
//自动遮罩不可见区域,超出的不显示
cell.layer.masksToBounds = true
cell.backgroundColor = UIColor.whiteColor()
cell.layer.borderWidth = 1
// 设置边框的颜色
cell.layer.borderColor = UIColor.blackColor().CGColor
// 设置UIView的边框为圆角和展现
cell.layer.cornerRadius = 10
//自动遮罩不可见区域,超出的不显示
cell.layer.masksToBounds = true
cell.backgroundColor = UIColor.whiteColor()
相关文章推荐
- Swift - UIView,UItableView,Cell设置边框方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- 【iOS】UITableview cell 顶部空白的n种设置方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- 设置 UITableView 边框 cell 边框 竖线
- IOS--UIViewUIButtonUIImageView设置圆角、阴影、边框的方法
- UITableView中cell边框和背景设置最佳方案
- 详解iOS开发中UITableview cell 顶部空白的多种设置方法
- IOS--UIViewUIButtonUIImageView设置圆角、阴影、边框的方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- IOS uitableview中cell的分割线设置距离,并且去掉cell的边框,要不然多了一条细线
- UIView,UIButton,UIImageView等视图设置圆角,设置阴影,设置边框的方法
- 去掉UITableView中Group样式cell的边框目前最完美方法
- 去掉UITableView中Group样式cell的边框目前最完美方法
- 几种设置UITableView的cell动态高度的方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- 总结了几种设置UITableView的cell动态高度的方法
- 几种设置UITableView的cell动态高度的方法
- (原创)iOS中cell高度自适应方法UITableView设置