let iv = UIImageView(imageName: "avatar_default_big")
iv.layer.cornerRadius = 45
iv.layer.borderWidth = 2
iv.layer.borderColor = UIColor.red.cgColor
iv.layer.masksToBounds = true
let iv = UIImageView(imageName: "avatar_default_big")
iv.layer.cornerRadius = 45
iv.layer.borderWidth = 2
iv.layer.borderColor = UIColor.red.cgColor
iv.layer.masksToBounds = true
本文标题:图片圆形展示,边框宽度颜色设置
本文链接:https://www.haomeiwen.com/subject/cssqfltx.html
网友评论