Browse Source

1.update material default to all

wenweiwei 3 years ago
parent
commit
ebd1f4edbf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Introduce/Record/INPhotoVideosController.swift

+ 2 - 1
Introduce/Record/INPhotoVideosController.swift

@@ -63,6 +63,7 @@ class INPhotoVideosController: BFBaseViewController {
         choseLocalAllBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17, weight: .medium)
         choseLocalAllBtn.addCorner(corner: 6)
         choseLocalAllBtn.tag = 10
+        choseLocalAllBtn.isSelected = true
         choseLocalAllBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
         return choseLocalAllBtn
     }()
@@ -75,7 +76,6 @@ class INPhotoVideosController: BFBaseViewController {
         choseLocalVideoBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17, weight: .medium)
         choseLocalVideoBtn.addCorner(corner: 6)
         choseLocalVideoBtn.tag = 11
-        choseLocalVideoBtn.isSelected = true
         choseLocalVideoBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
         return choseLocalVideoBtn
     }()
@@ -103,6 +103,7 @@ class INPhotoVideosController: BFBaseViewController {
     lazy var photoMaterialVc: BFPhotosMaterialController = {
         let vc = BFPhotosMaterialController()
         vc.maxChoseNum = 20
+        vc.msgType = .all
         vc.view.backgroundColor = .black
         vc.updateFrame(newFrame: CGRect(x: 0, y: navHeadImageView?.bottomY ?? 0, width: cScreenWidth, height: cScreenHeigth - cDevice_iPhoneTabBarHei - (navHeadImageView?.bottomY ?? 0)))
         vc.selectedMaterialHandle = { [weak self] _, selectedPhotoData, _, _ in