1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // IHTwoRowCell.swift
- // Inhealth
- //
- // Created by weclouds on 2019/12/19.
- // Copyright © 2019 weclouds. All rights reserved.
- //
- import UIKit
- class IHTwoRowCell: UITableViewCell {
-
- var mTitle : String?{
- didSet{
- aTitleLabel.text = self.mTitle
- }
- }
- var isChangeColor : Bool?{
- didSet{
- if isChangeColor == false{
- cellContentView.backgroundColor = UIColor.init(red: 246/255.0, green: 248/255.0, blue: 247/255.0, alpha: 1.0)
- aValueLabel.textColor = .black
- }
- }
- }
- var mValue :String? {
- didSet{
- aValueLabel.text = self.mValue
- }
- }
- @IBOutlet weak var aTitleLabel: UILabel!
-
- @IBOutlet weak var aValueLabel: UILabel!
-
- @IBOutlet weak var cellContentView: UIView!
- 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
- }
-
- }
|