首页 > 其他 > 详细

设置tableViewCell的背景颜色

时间:2014-08-27 10:34:27      阅读:246      评论:0      收藏:0      [点我收藏+]
- (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexPath

{

    cell.backgroundColor = indexPath.row % 2?[UIColor colorWithRed: 240.0/255 green: 240.0/255 blue: 240.0/255 alpha: 1.0]: [UIColor whiteColor];

    cell.textLabel.backgroundColor = [UIColor clearColor];

    cell.detailTextLabel.backgroundColor = [UIColor clearColor];

}

 

 

设置tableViewCell的背景颜色

原文:http://www.cnblogs.com/lxllanou/p/3938724.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!