1234567891011121314151617181920212223242526272829303132333435 |
- //
- // IHFloorListCell.swift
- // Inhealth
- //
- // Created by weclouds on 2020/1/6.
- // Copyright © 2020 weclouds. All rights reserved.
- //
- import UIKit
- class IHFloorListCell: UICollectionViewCell {
- var floorName :String? {
- didSet{
- self.floorNameLabel.text = self.floorName
- }
- }
- @IBOutlet private weak var floorNameLabel: UILabel!
-
- override func awakeFromNib() {
- super.awakeFromNib()
- // Initialization code
- }
- override var isSelected: Bool{
- didSet{
- if self.isSelected == true {
- floorNameLabel.backgroundColor = UIColor(hexString: "#573F95")
- floorNameLabel.textColor = UIColor(hexString: "#FFFFFF")
- }else{
- floorNameLabel.backgroundColor = UIColor(hexString: "#F6F8F7")
- floorNameLabel.textColor = UIColor(hexString: "#333333")
- }
- }
- }
- }
|