我已在界面构建器中创建了sudo gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
,然后在我的imageView
子类中设置了角半径。然而它似乎并不适用?图像已设置但没有角半径?
在awakeFromNib
UITableViewCell
答案 0 :(得分:1)
答案 1 :(得分:-1)
尝试将其放在您的子类
override func layoutSubviews() {
super.layoutSubviews()
homeBackground?.image = UIImage(named: "score.png")
homeBackground?.layer.masksToBounds = true
homeBackground?.clipsToBounds = true
homeBackground?.layer.cornerRadius = 25
}