|
@@ -90,6 +90,16 @@ class INVideoExportController: BFBaseViewController {
|
|
|
btn.addTarget(self, action: #selector(saveAllAction(btn:)), for: .touchUpInside)
|
|
|
return btn
|
|
|
}()
|
|
|
+
|
|
|
+ lazy var saveAllBtnTips: UILabel = {
|
|
|
+ let la = UILabel()
|
|
|
+ la.textColor = .white
|
|
|
+ la.textAlignment = .center
|
|
|
+ la.text = "savemode_all".BFLocale
|
|
|
+ la.font = UIFont.systemFont(ofSize: 14)
|
|
|
+ return la
|
|
|
+ }()
|
|
|
+
|
|
|
|
|
|
lazy var saveOnlyBtn: UIButton = {
|
|
|
let btn = UIButton()
|
|
@@ -98,10 +108,19 @@ class INVideoExportController: BFBaseViewController {
|
|
|
btn.addTarget(self, action: #selector(saveOnlyAction(btn:)), for: .touchUpInside)
|
|
|
return btn
|
|
|
}()
|
|
|
+ lazy var saveOnlyBtnTips: UILabel = {
|
|
|
+ let la = UILabel()
|
|
|
+ la.textColor = .white
|
|
|
+ la.textAlignment = .center
|
|
|
+ la.text = "savemode_onlyrecord".BFLocale
|
|
|
+ la.font = UIFont.systemFont(ofSize: 14)
|
|
|
+ return la
|
|
|
+ }()
|
|
|
+
|
|
|
|
|
|
lazy var completeBtn: UIButton = {
|
|
|
let btn = UIButton()
|
|
|
- btn.setTitle("回到首页", for: .normal)
|
|
|
+ btn.setTitle("option_Finish".BFLocale, for: .normal)
|
|
|
btn.titleLabel?.font = UIFont.systemFont(ofSize: 14)
|
|
|
btn.setTitleColor(UIColor.hexColor(hexadecimal: "#6B6B6B"), for: .normal)
|
|
|
btn.setTitleColor(.gray, for: .disabled)
|
|
@@ -415,8 +434,11 @@ class INVideoExportController: BFBaseViewController {
|
|
|
backV.addSubview(progressL)
|
|
|
|
|
|
bottomView.addSubview(saveAllBtn)
|
|
|
+ saveAllBtn.addSubview(saveAllBtnTips)
|
|
|
bottomView.addSubview(saveOnlyBtn)
|
|
|
+ saveOnlyBtn.addSubview(saveOnlyBtnTips)
|
|
|
bottomView.addSubview(saveToPhotoBtn)
|
|
|
+
|
|
|
bottomView.addSubview(completeBtn)
|
|
|
|
|
|
errorView.snp.makeConstraints { make in
|
|
@@ -481,6 +503,11 @@ class INVideoExportController: BFBaseViewController {
|
|
|
make.top.equalTo(28)
|
|
|
make.centerX.equalToSuperview().offset(-82 - 6.5)
|
|
|
}
|
|
|
+ saveAllBtnTips.snp.makeConstraints { make in
|
|
|
+ make.bottom.equalToSuperview().offset(-7)
|
|
|
+ make.left.equalToSuperview().offset(2)
|
|
|
+ make.right.equalToSuperview().offset(-2)
|
|
|
+ }
|
|
|
|
|
|
saveOnlyBtn.snp.makeConstraints { make in
|
|
|
// make.left.equalTo(saveAllBtn.snp.right).offset(16)
|
|
@@ -488,6 +515,12 @@ class INVideoExportController: BFBaseViewController {
|
|
|
make.left.equalTo(saveAllBtn.snp.right).offset(13)
|
|
|
make.right.equalTo(completeBtn)
|
|
|
}
|
|
|
+
|
|
|
+ saveOnlyBtnTips.snp.makeConstraints { make in
|
|
|
+ make.bottom.equalToSuperview().offset(-7)
|
|
|
+ make.left.equalToSuperview().offset(2)
|
|
|
+ make.right.equalToSuperview().offset(-2)
|
|
|
+ }
|
|
|
|
|
|
// DispatchQueue.main.asyncAfter(deadline: .now() + 0) { [weak self] in
|
|
|
// guard let sself = self else {
|
|
@@ -582,10 +615,15 @@ class INVideoExportController: BFBaseViewController {
|
|
|
// saveAllBtn.setImage(UIImage(named: "export_saveall_h"), for: .disabled)
|
|
|
saveAllBtn.setImage(UIImage(named: "export_saveall_h"), for: .normal)
|
|
|
saveOnlyBtn.setImage(UIImage(named: "export_saveonly_n"), for: .normal)
|
|
|
+ saveAllBtnTips.textColor = UIColor.hexColor(hexadecimal: "#389AFF")
|
|
|
+ saveOnlyBtnTips.textColor = UIColor(red: 0.696, green: 0.696, blue: 0.696, alpha: 1)
|
|
|
}else{
|
|
|
// saveAllBtn.setImage(UIImage(named: "export_saveall_n"), for: .disabled)
|
|
|
saveAllBtn.setImage(UIImage(named: "export_saveall_n"), for: .normal)
|
|
|
saveOnlyBtn.setImage(UIImage(named: "export_saveonly_h"), for: .normal)
|
|
|
+
|
|
|
+ saveOnlyBtnTips.textColor = UIColor.hexColor(hexadecimal: "#389AFF")
|
|
|
+ saveAllBtnTips.textColor = UIColor(red: 0.696, green: 0.696, blue: 0.696, alpha: 1)
|
|
|
}
|
|
|
|
|
|
saveToPhotoBtn.isEnabled = false
|
|
@@ -650,6 +688,10 @@ class INVideoExportController: BFBaseViewController {
|
|
|
|
|
|
btn.isSelected = true
|
|
|
saveOnlyBtn.isSelected = false
|
|
|
+
|
|
|
+ saveAllBtnTips.textColor = UIColor.hexColor(hexadecimal: "#389AFF")
|
|
|
+ saveOnlyBtnTips.textColor = UIColor(red: 0.696, green: 0.696, blue: 0.696, alpha: 1)
|
|
|
+
|
|
|
avplayer.pause()
|
|
|
|
|
|
if !hasExportAll {
|
|
@@ -682,6 +724,8 @@ class INVideoExportController: BFBaseViewController {
|
|
|
|
|
|
btn.isSelected = true
|
|
|
saveAllBtn.isSelected = false
|
|
|
+ saveOnlyBtnTips.textColor = UIColor.hexColor(hexadecimal: "#389AFF")
|
|
|
+ saveAllBtnTips.textColor = UIColor(red: 0.696, green: 0.696, blue: 0.696, alpha: 1)
|
|
|
avplayer.pause()
|
|
|
if !hasExportOnly {
|
|
|
exportNow()
|
|
@@ -789,7 +833,7 @@ class INVideoExportController: BFBaseViewController {
|
|
|
let alertController = UIAlertController(title: msg,
|
|
|
message: "", preferredStyle: .alert)
|
|
|
let cancelAction = UIAlertAction(title: "option_cancel".BFLocale, style: .default, handler: nil)
|
|
|
- let okAction = UIAlertAction(title: "确定", style: .default) {[weak self] action in
|
|
|
+ let okAction = UIAlertAction(title: "option_ok".BFLocale, style: .default) {[weak self] action in
|
|
|
guard let sself = self else {
|
|
|
return
|
|
|
}
|