添加方法
cell的.m文件内
- (void)awakeFromNib
{
[super awakeFromNib];
[self setClipsToBounds:YES];
[self.contentView setClipsToBounds:YES];
}
非xib文件在
-(void)layoutSubviews{
[self setClipsToBounds:YES];
[self.contentView setClipsToBounds:YES];
}
网友评论