|
@@ -431,11 +431,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
}
|
|
|
|
|
|
//add by ak
|
|
|
- wself.soundSettingBtn.isHidden = false
|
|
|
- wself.cameraFlipBtn.isHidden = false
|
|
|
- wself.voiceSettingBtn.isHidden = false
|
|
|
- wself.subtitleBtn.isHidden = false
|
|
|
- wself.addMusicBtn.isHidden = false
|
|
|
+ wself.showOptBtn(isShow: true)
|
|
|
}
|
|
|
return musicCutView
|
|
|
}()
|
|
@@ -569,7 +565,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
vc.cutActionCallback = {[weak self] voiceModel in
|
|
|
guard let wself = self else { return }
|
|
|
-
|
|
|
+ wself.showOptBtn(isShow: false)
|
|
|
wself.showCutView(voiceModel)
|
|
|
}
|
|
|
wself.present(vc, animated: true, completion: nil)
|
|
@@ -582,11 +578,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
wself.choseMusicPanel.frame = CGRect(x: 0, y: cScreenHeigth, width: cScreenWidth, height: cScreenHeigth)
|
|
|
|
|
|
- wself.soundSettingBtn.isHidden = false
|
|
|
- wself.cameraFlipBtn.isHidden = false
|
|
|
- wself.voiceSettingBtn.isHidden = false
|
|
|
- wself.subtitleBtn.isHidden = false
|
|
|
- wself.addMusicBtn.isHidden = false
|
|
|
+ if(type != .search){
|
|
|
+ wself.showOptBtn(isShow: true)
|
|
|
+ }
|
|
|
wself.cleanScreen?(false)
|
|
|
}
|
|
|
|
|
@@ -599,12 +593,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
guard let wself = self else { return }
|
|
|
|
|
|
wself.choseMusicPanel.frame = CGRect(x: 0, y: cScreenHeigth, width: cScreenWidth, height: cScreenHeigth)
|
|
|
-
|
|
|
- wself.soundSettingBtn.isHidden = false
|
|
|
- wself.cameraFlipBtn.isHidden = false
|
|
|
- wself.voiceSettingBtn.isHidden = false
|
|
|
- wself.subtitleBtn.isHidden = false
|
|
|
- wself.addMusicBtn.isHidden = false
|
|
|
+
|
|
|
} completion: {[weak self] _ in
|
|
|
guard let wself = self else { return }
|
|
|
wself.showCutView(voiceModel)
|
|
@@ -764,6 +753,17 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
assetPlayer.pause()
|
|
|
recordPlayer.pause()
|
|
|
}
|
|
|
+
|
|
|
+ /// 显示或隐藏功能 btn
|
|
|
+ /// - Parameter isShow: <#isShow description#>
|
|
|
+ func showOptBtn(isShow:Bool){
|
|
|
+
|
|
|
+ soundSettingBtn.isHidden = !isShow
|
|
|
+ cameraFlipBtn.isHidden = !isShow
|
|
|
+ voiceSettingBtn.isHidden = !isShow
|
|
|
+ subtitleBtn.isHidden = !isShow
|
|
|
+ addMusicBtn.isHidden = !isShow
|
|
|
+ }
|
|
|
|
|
|
@objc func didBecomeActive() {
|
|
|
BFLog(message: "进入活跃状态")
|