本文只作自用笔记,不喜忽喷,诚谢纠错。
设置圆角仔layer层实现。需要设置两个属性
代码实现
1.view.layer.makesToBounds = true //bounds可编辑
2.view.layer.cornerRadius = 10//设置角度
XIB中