MainPublishFooterView.swift 702 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // MainPublishFooterView.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 2017/3/7.
  6. // Copyright © 2017年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. protocol MainPublishHeaderViewDelegate {
  10. func showMorePublishInfo()
  11. }
  12. class MainPublishFooterView: UICollectionReusableView {
  13. @IBOutlet weak var moreButton: UIButton!
  14. var delegate:MainPublishHeaderViewDelegate?
  15. @IBAction func showMorePublishInfo(_ sender: UIButton) {
  16. print("showMorePublishInfo")
  17. NotificationCenter.default.post(name: NSNotification.Name("SHOW_MORE_PUBLISH"), object: nil)
  18. // if let d = delegate {
  19. // d.showMorePublishInfo()
  20. // }
  21. }
  22. }