1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import BFMaterialKit
- import BFMediaKit
- import BFRecordScreenKit
- import UIKit
- class ViewController: UIViewController {
- lazy var addVideoBtn: UIButton = {
- let btn = UIButton(type: .custom)
- btn.setImage(UIImage(named: "add"), for: .normal)
- btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)
- return btn
- }()
- override func viewDidLoad() {
- super.viewDidLoad()
- view.backgroundColor = .black
- navigationController?.isNavigationBarHidden = true
- view.addSubview(addVideoBtn)
- addVideoBtn.snp.makeConstraints { make in
- make.width.height.equalTo(170)
- make.center.equalToSuperview()
- }
- }
- override func didReceiveMemoryWarning() {
- super.didReceiveMemoryWarning()
-
- }
- @objc func addVideo() {
- let vc = PhotoVideoListController()
- vc.hidesBottomBarWhenPushed = true
- navigationController?.pushViewController(vc, animated: true)
- }
- }
|