CloudFileViewController.swift 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. //
  2. // CloudFileViewController.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 CloudFileViewController: UITableViewController {
  10. @IBAction func clickCloseAction(_ sender: UIBarButtonItem) {
  11. print("点击了关闭按钮。。。。。。。。。。。")
  12. }
  13. @IBOutlet weak var imageBtn: UIStackView!
  14. @IBOutlet weak var documentBtn: UIStackView!
  15. @IBOutlet weak var musicBtn: UIStackView!
  16. @IBOutlet weak var videoBtn: UIStackView!
  17. @IBOutlet weak var otherBtn: UIStackView!
  18. @IBOutlet weak var shareBtn: UIStackView!
  19. override func viewDidLoad() {
  20. super.viewDidLoad()
  21. // Uncomment the following line to preserve selection between presentations
  22. // self.clearsSelectionOnViewWillAppear = false
  23. // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
  24. // self.navigationItem.rightBarButtonItem = self.editButtonItem
  25. self.imageBtn.addTapGesture { (tap) in
  26. print("图片按钮。。。。。。。")
  27. }
  28. self.documentBtn.addTapGesture { (tap) in
  29. print("文档按钮。。。。。。。")
  30. }
  31. self.musicBtn.addTapGesture { (tap) in
  32. print("音频按钮。。。。。。。")
  33. }
  34. self.videoBtn.addTapGesture { (tap) in
  35. print("视频按钮。。。。。。。")
  36. }
  37. self.otherBtn.addTapGesture { (tap) in
  38. print("其他按钮。。。。。。。")
  39. }
  40. self.shareBtn.addTapGesture { (tap) in
  41. print("分享按钮。。。。。。。")
  42. }
  43. }
  44. // MARK: - Table view data source
  45. override func numberOfSections(in tableView: UITableView) -> Int {
  46. // #warning Incomplete implementation, return the number of sections
  47. return 0
  48. }
  49. override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  50. // #warning Incomplete implementation, return the number of rows
  51. return 0
  52. }
  53. /*
  54. override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  55. let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath)
  56. // Configure the cell...
  57. return cell
  58. }
  59. */
  60. /*
  61. // Override to support conditional editing of the table view.
  62. override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
  63. // Return false if you do not want the specified item to be editable.
  64. return true
  65. }
  66. */
  67. /*
  68. // Override to support editing the table view.
  69. override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
  70. if editingStyle == .delete {
  71. // Delete the row from the data source
  72. tableView.deleteRows(at: [indexPath], with: .fade)
  73. } else if editingStyle == .insert {
  74. // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
  75. }
  76. }
  77. */
  78. /*
  79. // Override to support rearranging the table view.
  80. override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) {
  81. }
  82. */
  83. /*
  84. // Override to support conditional rearranging of the table view.
  85. override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {
  86. // Return false if you do not want the item to be re-orderable.
  87. return true
  88. }
  89. */
  90. /*
  91. // MARK: - Navigation
  92. // In a storyboard-based application, you will often want to do a little preparation before navigation
  93. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  94. // Get the new view controller using segue.destination.
  95. // Pass the selected object to the new view controller.
  96. }
  97. */
  98. }