在自定义单元中设置了[self setClipsToBound : YES]
。然后将红色的imageView作为子视图添加[self addSubview:imageView]
。
但是效果如图所示,imageView设置clip未成功。
在自定义单元中设置了[self setClipsToBound : YES]
。然后将红色的imageView作为子视图添加[self addSubview:imageView]
。
但是效果如图所示,imageView设置clip未成功。
cell上的圆角 是cell的背景图吧,想要添加的imageView 有圆角 不光要setClipsToBound还要
对cell 的layer 设置下圆角
[cell.layer setCornerRadius:6];