// // AchiveAccountCell.swift // xingchuangke // // Created by 李晓飞 on 2020/8/28. // Copyright © 2020 Virgil. All rights reserved. // import UIKit class AchiveAccountCell: UITableViewCell { @IBOutlet weak var targetView: UIView! @IBOutlet weak var nameLabel: UILabel! override var isSelected: Bool { didSet { reloadCell() } } func reloadCell() { if isSelected { targetView.isHidden = false nameLabel.textColor = CommonUntils.getUIColorFromRGB(rgbValue: 0x2094F5, alpha: 1.0) self.contentView.backgroundColor = UIColor.white // nameLbl.layer.borderColor // nameLbl.layer.borderWidth } else { targetView.isHidden = true nameLabel.textColor = CommonUntils.getUIColorFromRGB(rgbValue: 0x333333) self.contentView.backgroundColor = CommonUntils.getUIColorFromRGB(rgbValue: 0xF5F5F5) } } override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }