#import "UITableViewCell+Line.h"
@implementation UITableViewCell (Line)
- (void)layoutSubviews{
[super layoutSubviews];
for (UIView *subview in self.contentView.superview.subviews) {
if ([NSStringFromClass(subview.class) hasSuffix:@"SeparatorView"]) {
subview.hidden = NO;
}
}
}
when I use this method,UITableView will not load data. Every cell does not appear data,the dataArray is not nil,it also has data. why? because layoutSubviews ?