MeetingRoomItemCell.swift 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // MeetingRoomItemCell.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/8/28.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. class MeetingRoomItemCell: UITableViewCell {
  10. @IBOutlet weak var deviceListView: MeetingRoomDeviceListView!
  11. @IBOutlet weak var meetingRoomTitleLabel: UILabel!
  12. @IBOutlet weak var personLabel: UILabel!
  13. var meetingRoom:Room?{
  14. didSet {
  15. meetingRoomTitleLabel.text = meetingRoom?.name
  16. personLabel.text = "\((meetingRoom?.capacity)!)人"
  17. self.deviceListView.deviceList = meetingRoom?.device
  18. self.layoutIfNeeded()
  19. }
  20. }
  21. override func awakeFromNib() {
  22. super.awakeFromNib()
  23. // Initialization code
  24. }
  25. override func setSelected(_ selected: Bool, animated: Bool) {
  26. super.setSelected(selected, animated: animated)
  27. // Configure the view for the selected state
  28. }
  29. }