IntegralManagerHeaderView.swift 772 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // IntegralManagerHeaderView.swift
  3. // xingchuangke
  4. //
  5. // Created by Virgil on 2019/4/28.
  6. // Copyright © 2019 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class IntegralManagerHeaderView: UIView {
  10. @IBOutlet weak var view1: UIView!
  11. @IBOutlet weak var view2: UIView!
  12. @IBOutlet weak var view3: UIView!
  13. @IBOutlet weak var btnCopy: UIButton!
  14. @IBOutlet weak var lblContent: UILabel!
  15. func initView() {
  16. self.setSizeWidth(width: ScreenWidth)
  17. view1.setSizeHeight(height: ScreenWidth / 375 * 147)
  18. view2.marginTop(top: 0, view: view1)
  19. view3.marginTop(top: 0, view: view2)
  20. self.setSizeHeight(height: view3.bottom())
  21. lblContent.setCornerRadius(size: 4)
  22. btnCopy.setCornerRadius(size: 4)
  23. }
  24. }