.cornerRadius设置后头像变模糊的问题

把.cornerRadius改为 .layer.cornerRadius 就可以了。

同时不要忘了这句.layer.masksToBounds 。


设置描边为1 .layer.borderWidth = 1;描边的颜色

.borderColor =[UICorlor redCorlor];



猜你喜欢

转载自blog.csdn.net/ximiaoweilai/article/details/75635410