搜索
您的当前位置:首页正文

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

来源:二三娱乐

tableView的cell选中背景色

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

tableView的cell选中文字颜色

cell.titleLabel.highlightedTextColor = [UIColor  whiteColor];
Top