let imageView = UIImageView()
imageView.image = UIImage(name: "image1")
imageView.layer.cornerRadius = 10
imageView.clipsToBounds = true // 重点
let imageView = UIImageView()
imageView.image = UIImage(name: "image1")
imageView.layer.cornerRadius = 10
imageView.clipsToBounds = true // 重点
本文标题:设置图片为圆角
本文链接:https://www.haomeiwen.com/subject/myltbqtx.html
网友评论