美文网首页
tableViewcell选中背景色和选中文字颜色

tableViewcell选中背景色和选中文字颜色

作者: 学学学q | 来源:发表于2017-01-22 23:06 被阅读36次

tableView的cell选中背景色

UIColor *color = kThemeColor;
//通过RGB来定义自己的颜色
cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor = color; 

tableView的cell选中文字颜色

cell.titleLabel.highlightedTextColor = [UIColor  whiteColor];

相关文章

网友评论

      本文标题:tableViewcell选中背景色和选中文字颜色

      本文链接:https://www.haomeiwen.com/subject/fpnobttx.html