SettingHomeCell.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // SettingHomeCell.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/7/6.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. class SettingHomeCell: UITableViewCell {
  10. @IBOutlet weak var iconImageView: UIImageView!
  11. @IBOutlet weak var titleLabel: UILabel!
  12. @IBOutlet weak var statusLabel: UILabel!
  13. var cellModel:SettingHomeCellModel?{
  14. didSet {
  15. //设置
  16. self.iconImageView.image = UIImage(named: (cellModel?.iconName)!)
  17. self.titleLabel.text = cellModel?.title
  18. if let text = cellModel?.status {
  19. self.statusLabel.text = text
  20. }else{
  21. self.statusLabel.text = ""
  22. }
  23. }
  24. }
  25. // override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
  26. // super.init(style: style, reuseIdentifier: reuseIdentifier)
  27. // }
  28. //
  29. // required init?(coder aDecoder: NSCoder) {
  30. // fatalError("init(coder:) has not been implemented")
  31. // }
  32. override func awakeFromNib() {
  33. super.awakeFromNib()
  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. }