设置图片为圆角
2019-03-27 本文已影响0人
pomelo_西
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 // 重点