Change background of a grouped UITableView

后端 未结 8 692
情歌与酒
情歌与酒 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条回答
  •  梦毁少年i
    2020-12-31 01:49

    For iOS 9+, changing the background color of the UITableView is enough.

    Objective-C

    tableView.backgroundColor = [UIColor redColor];
    

    Swift

    tableView.backgroundColor = .red
    

提交回复
热议问题