IHTwoRowCell.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // IHTwoRowCell.swift
  3. // Inhealth
  4. //
  5. // Created by weclouds on 2019/12/19.
  6. // Copyright © 2019 weclouds. All rights reserved.
  7. //
  8. import UIKit
  9. class IHTwoRowCell: UITableViewCell {
  10. var mTitle : String?{
  11. didSet{
  12. aTitleLabel.text = self.mTitle
  13. }
  14. }
  15. var isChangeColor : Bool?{
  16. didSet{
  17. if isChangeColor == false{
  18. cellContentView.backgroundColor = UIColor.init(red: 246/255.0, green: 248/255.0, blue: 247/255.0, alpha: 1.0)
  19. aValueLabel.textColor = .black
  20. }
  21. }
  22. }
  23. var mValue :String? {
  24. didSet{
  25. aValueLabel.text = self.mValue
  26. }
  27. }
  28. @IBOutlet weak var aTitleLabel: UILabel!
  29. @IBOutlet weak var aValueLabel: UILabel!
  30. @IBOutlet weak var cellContentView: UIView!
  31. override func awakeFromNib() {
  32. super.awakeFromNib()
  33. // Initialization code
  34. }
  35. override func setSelected(_ selected: Bool, animated: Bool) {
  36. super.setSelected(selected, animated: animated)
  37. // Configure the view for the selected state
  38. }
  39. }