重寫(xiě)addSubview: 方法,找到系統(tǒng)的分割線,覆蓋它。
-(void)addSubview:(UIView*)view {
? ? if (![view isKindOfClass:[NSClassFromString(@"_UITableViewCellSeparatorView") class]] && view)
? ? ? ? [superaddSubview:view];
}
在自定義的UITableViewCell中,添加上述代碼。
重寫(xiě)addSubview: 方法,找到系統(tǒng)的分割線,覆蓋它。
-(void)addSubview:(UIView*)view {
? ? if (![view isKindOfClass:[NSClassFromString(@"_UITableViewCellSeparatorView") class]] && view)
? ? ? ? [superaddSubview:view];
}
在自定義的UITableViewCell中,添加上述代碼。