图片圆形展示,边框宽度颜色设置
2021-02-21 本文已影响0人
IOXusu
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