设置tableView背景颜色

[treeTableView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];

    [treeTableView setBackgroundColor:[UIColor blueColor] /*#fff9f4*/];

[treeTableView setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];

[treeTableView setRowHeight:45.0f];

    treeTableView.backgroundView = [[UIView alloc] init];

    treeTableView.backgroundColor = [UIColor clearColor];

[self.view addSubview:treeTableView];

原文地址:https://www.cnblogs.com/Camier-myNiuer/p/4184432.html