同时调用一下两个方法:

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.quickProfessionLabel.backgroundColor = UIColorFromRGB(0xce0f32);
    self.quickUnReadLabel.backgroundColor = UIColorFromRGB(0xce0f32);
}


- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
    
    [super setHighlighted:highlighted animated:animated];
    
    self.quickProfessionLabel.backgroundColor = UIColorFromRGB(0xce0f32);
    self.quickUnReadLabel.backgroundColor = UIColorFromRGB(0xce0f32);
    
}

 

 

http://blog.sina.com.cn/s/blog_134451adb0102wcsv.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案