代码如下:
重写cell 的layoutSubviews方法
- (void)layoutSubviews
{
[super layoutSubviews];
for (UIView *subview in self.contentView.superview.subviews) {
if ([NSStringFromClass(subview.class) hasSuffix:@"SeparatorView"]) {
subview.hidden = NO;
}
}
}
网友评论