嗨,我的情况如下图所示:
我可以使角落后面的小视图与单元格的背景颜色有所不同吗?
我尝试了以下代码:
cell.lblActionTitle.text = sectionValue.data?.title
cell.lblActionTitle.font = UIFont(name: "HelveticaNeue", size: 18)
cell.lblActionTitle.textColor = .black
cell.lblActionTitle.backgroundColor = .yellow
cell.layer.borderColor = UIColor.black.cgColor
cell.layer.borderWidth = 0.5
cell.layer.cornerRadius = 10
cell.clipsToBounds = true
cell.layer.masksToBounds = true
cell.layoutSubviews()