问题描述上图:
解决方法:重写cell的UISeparatorView的layoutSubviews方法,废话少说,上王道:
- (void)layoutSubviews
{
[super layoutSubviews];
for (UIView *subView in self.contentView.superview.subviews) {
if ([NSStringFromClass(subView.class)hasSuffix:@"SeparatorView"]) {
subView.hidden = NO;
}
}
}
效果图: