UITableView set background color

后端 未结 8 1507
离开以前
离开以前 2020-12-24 02:51

I change the background color of the UITableViewCells in the tableView:cellForRowAtIndexPath method

    if(indexPath.row % 2 == 0){
        cell.bac         


        
8条回答
  •  无人及你
    2020-12-24 03:11

    You need to set the tableview's backgroundView to nil and its backgroundColor to the desired color.

提交回复
热议问题