1.在常用工具类中写个类方法 如下所示:
+(void)setExtraCellLineHidden: (UITableView *)tableView
{
UIView *view = [UIView new];
view.backgroundColor = [UIColor clearColor];
[tableView setTableFooterView:view];
}
在需要用到的地方直接用类名调用此方法即可