重写addSubview: 方法,找到系统的分割线,覆盖它。
-(void)addSubview:(UIView*)view {
if (![view isKindOfClass:[NSClassFromString(@"_UITableViewCellSeparatorView") class]] && view)
[superaddSubview:view];
}
在自定义的UITableViewCell中,添加上述代码。
重写addSubview: 方法,找到系统的分割线,覆盖它。
-(void)addSubview:(UIView*)view {
if (![view isKindOfClass:[NSClassFromString(@"_UITableViewCellSeparatorView") class]] && view)
[superaddSubview:view];
}
在自定义的UITableViewCell中,添加上述代码。