CloudFileFolderCell.swift 997 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // CloudFileFolderCell.swift
  3. // O2Platform
  4. //
  5. // Created by FancyLou on 2019/10/8.
  6. // Copyright © 2019 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. class CloudFileFolderCell: UITableViewCell {
  10. @IBOutlet weak var folderUpdateTimeLabel: UILabel!
  11. @IBOutlet weak var folderNameLabel: UILabel!
  12. @IBOutlet weak var checkBoxImage: UIImageView!
  13. var checkDelegate: CloudFileCheckDelegate?
  14. override func awakeFromNib() {
  15. super.awakeFromNib()
  16. // Initialization code
  17. }
  18. override func setSelected(_ selected: Bool, animated: Bool) {
  19. super.setSelected(selected, animated: animated)
  20. }
  21. func setData(folder: OOFolder) {
  22. self.folderNameLabel.text = folder.name ?? ""
  23. self.folderUpdateTimeLabel.text = folder.updateTime ?? ""
  24. if self.checkDelegate != nil {
  25. self.checkBoxImage.addTapGesture { (tap) in
  26. self.checkDelegate?.checkItem(folder)
  27. }
  28. }
  29. }
  30. }