修改cell的背景和背景图片

来源:互联网 发布:怎么获取网站数据库 编辑:程序博客网 时间:2024/05/17 22:54

#define DARK_BACKGROUND  [UIColor colorWithRed:151.0/255.0green:152.0/255.0 blue:155.0/255.0 alpha:1.0]

 

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath *)indexPath

{

    //cell.backgroundColor =  [UIColor colorWithPatternImage:[UIImage imageNamed:@"51_TableViewBackGround@2x.png"]];

    //cell.backgroundView =

    cell.backgroundColor = cell.backgroundColor = DARK_BACKGROUND;

 

}

0 0
原创粉丝点击