How to change UITableViewCell Image to Circle in UITableView

前端 未结 11 1710

My code works for the most part.

  • The issue I am having is the images start out as square, and change to circle when I scroll the table or refresh it.

11条回答
  •  既然无缘
    2021-02-12 12:49

    cell.imageView?.layer.cornerRadius = 22.0
    cell.imageView?.layer.masksToBounds = true
    

提交回复
热议问题