12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // IHGatewayCell.swift
- // Inhealth
- //
- // Created by weclouds on 2020/8/20.
- // Copyright © 2020 weclouds. All rights reserved.
- //
- import UIKit
- class IHGatewayCell: UITableViewCell {
- @IBOutlet weak var gatewayNameLabel: UILabel!
-
- @IBOutlet weak var gatewayIdLabel: UILabel!
- @IBOutlet weak var roomNumberLabel: UILabel!
-
- @IBOutlet weak var hardwareVersion: UILabel!
-
- @IBOutlet weak var softwareVersionLabel: UILabel!
-
- override func awakeFromNib() {
- super.awakeFromNib()
- let lineView = IHDashView(strokeColor: UIColor(hexString: "C6CDD5", transparency: 0.5)?.cgColor, gap: 3, lineWith: 1)
- lineView.frame = CGRect(x: 20, y: bounds.size.height - 1, width: KSCREENWIDTH - 40 , height: 1)
- addSubview(lineView)
- }
- var gatawayInfor : gatewayInfor?{
- didSet{
- if let infor = self.gatawayInfor{
- gatewayIdLabel.text = "ID:" + infor.SN!
- gatewayNameLabel.text = "未命名"
- hardwareVersion.text = "无"
- roomNumberLabel.text = "未知"
- }
- }
- }
-
- }
|