做下记录,备忘

改文字颜色其实是UILabel的属性,改背景颜色是cell的属性,都和tableview无关。

 cell.textLabel.textColor = BAR_COLOR;
 cell.textLabel.highlightedTextColor = [UIColor whiteColor];

    
    
 UIView *selectedView = [[UIView alloc] init];
 selectedView.backgroundColor = BAR_COLOR;
 cell.selectedBackgroundView = selectedView;

 

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
  • 2021-12-11
  • 2022-12-23
  • 2021-04-23
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-10-28
  • 2021-10-28
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案