添加方法
cell的.m文件内
-(void)awakeFromNib{
[superawakeFromNib];[selfsetClipsToBounds:YES];
[self.contentView setClipsToBounds:YES];
}
非xib文件在
-(void)layoutSubviews{
[selfsetClipsToBounds:YES];
[self.contentView setClipsToBounds:YES];
}
来源:https://www.jianshu.com/p/b5d3ead57408
网友评论