小编Ali*_*ian的帖子

UITableView - UITableViewCell.Style .subtitle - 如何使 UIImageView 圆形?- 斯威夫特 5

我有一个UITableView默认的单元格样式。(设置为.subtitle样式)我想将其设为UIImageView圆形。

cell.imageView.layer.borderWidth = 1
cell.imageView.layer.masksToBounds = false
cell.imageView.layer.borderColor = UIColor.white.cgColor
cell.imageView.layer.cornerRadius = profileImageView.frame.size.width/2
cell.imageView.clipsToBounds = true
Run Code Online (Sandbox Code Playgroud)

在这种情况下这是行不通的!

cell uitableview uiimage ios swift

3
推荐指数
1
解决办法
197
查看次数

标签 统计

cell ×1

ios ×1

swift ×1

uiimage ×1

uitableview ×1