Change background of a grouped UITableView

后端 未结 8 687
情歌与酒
情歌与酒 2020-12-31 01:16

I\'m having some trouble trying to change the background of a UITableView with groups.

_tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage i         


        
8条回答
  •  耶瑟儿~
    2020-12-31 01:28

    You additionally need to disable the background view of _tableView:

    [_tableView setBackgroundView:nil];
     _tableView.backgroundColor = [UIColor redColor];
    

    No need to add new view to backgroundView. This is working for me in iOS6.

提交回复
热议问题