-(void)ChangeTableViewCellColor:(UITableViewCell *)tableViewCell{// UIColor *color = [[UIColor alloc]initWithRed:0.0 green:0.0 blue:0.0 alpha:1];//通过RGB来定义自己的颜色// tableViewCell.selectedBackgroundView = [[UIView alloc] initWithFrame:tableViewCell.frame];// tableViewCell.selectedBackgroundView.backgroundColor = [UIColor yellowColor]; tableViewCell.selectionStyle = UITableViewCellSelectionStyleNone;//选中时无色}
ios 改变tableviewcell 的选中颜色
最新推荐文章于 2019-11-04 12:09:21 发布