|
@@ -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
|
|
@@ -172,6 +173,12 @@ class INPhotoVideosController: BFBaseViewController {
|
|
|
albumController.dismissCategoryView()
|
|
|
}
|
|
|
case 10, 11, 12: // 筛选全部图库
|
|
|
+ if (sender?.tag == choseLocalAllBtn.tag && choseLocalAllBtn.isSelected) ||
|
|
|
+ (sender?.tag == choseLocalVideoBtn.tag && choseLocalVideoBtn.isSelected) ||
|
|
|
+ (sender?.tag == choseLocalImageBtn.tag && choseLocalImageBtn.isSelected) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
choseLocalAllBtn.isSelected = sender?.tag == 10
|
|
|
choseLocalVideoBtn.isSelected = sender?.tag == 11
|
|
|
choseLocalImageBtn.isSelected = sender?.tag == 12
|