UITableview中的backgroundView

设置背景颜色

/*

在groub(组)类型的tableview,tableView会被盖上一层backgroundView(一条条斜线的View),这时候设置backgroundColor会没用的,只能先清空backgroundView,然后才能设置tableview的背景颜色

默认样式是没有backgroundView的。

     */

    self.tableView.backgroundView = nil;

    self.tableView.backgroundColor = [UIColor colorWithRed:230 / 250.0 green:230 / 250.0 blue:230 / 250.0 alpha:1];

原文地址:https://www.cnblogs.com/qiling/p/4894707.html