INRecorderController.swift 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // INRecorderController.swift
  3. // Introduce
  4. //
  5. // Created by 胡志强 on 2021/11/29.
  6. // 首页
  7. import Foundation
  8. import BFUIKit
  9. import BFRecordScreenKit
  10. import BFMaterialKit
  11. class INRecorderController: BFBaseViewController {
  12. lazy var addVideoBtn:UIButton = {
  13. let btn = UIButton(type: .custom)
  14. // btn.setTitle("Add", for: .normal)
  15. btn.setImage(UIImage(named: "add"), for: .normal)
  16. btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)
  17. return btn
  18. }()
  19. override func viewWillAppear(_ animated: Bool) {
  20. super.viewWillAppear(animated)
  21. hiddenNavigation()
  22. }
  23. override func viewDidLoad() {
  24. super.viewDidLoad()
  25. view.backgroundColor = .black
  26. view.addSubview(addVideoBtn)
  27. addVideoBtn.snp.makeConstraints { make in
  28. make.width.height.equalTo(170)
  29. make.center.equalToSuperview()
  30. }
  31. let l = UILabel()
  32. l.text = "选择视频,开始讲解"
  33. l.textColor = .white
  34. l.font = UIFont.systemFont(ofSize: 16)
  35. l.textAlignment = .center
  36. view.addSubview(l)
  37. l.snp.makeConstraints { make in
  38. make.top.equalTo(addVideoBtn.snp.bottom)
  39. make.centerX.equalToSuperview()
  40. make.width.equalTo(200)
  41. make.height.equalTo(24)
  42. }
  43. }
  44. override func didReceiveMemoryWarning() {
  45. super.didReceiveMemoryWarning()
  46. // Dispose of any resources that can be recreated.
  47. }
  48. @objc func addVideo(){
  49. let vc = INPhotoVideosController()
  50. vc.hidesBottomBarWhenPushed = true
  51. self.navigationController?.pushViewController(vc, animated: true)
  52. }
  53. }