|
@@ -99,11 +99,8 @@ class INVideoExportController: BFBaseViewController {
|
|
let btn = UIButton()
|
|
let btn = UIButton()
|
|
btn.setTitle(" 保存到相册", for: .normal)
|
|
btn.setTitle(" 保存到相册", for: .normal)
|
|
btn.setTitleColor(.white, for: .normal)
|
|
btn.setTitleColor(.white, for: .normal)
|
|
- btn.setTitleColor(.lightGray, for: .disabled)
|
|
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 16)
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 16)
|
|
btn.setImage(UIImage(named: "export_btn"), for: .normal)
|
|
btn.setImage(UIImage(named: "export_btn"), for: .normal)
|
|
- btn.adjustsImageWhenDisabled = true
|
|
|
|
- btn.adjustsImageWhenHighlighted = false
|
|
|
|
btn.backgroundColor = ThemeStyleColor
|
|
btn.backgroundColor = ThemeStyleColor
|
|
btn.addCorner(roundingCorners: .allCorners, corner: 8)
|
|
btn.addCorner(roundingCorners: .allCorners, corner: 8)
|
|
btn.addTarget(self, action: #selector(saveToPhotoNow), for: .touchUpInside)
|
|
btn.addTarget(self, action: #selector(saveToPhotoNow), for: .touchUpInside)
|
|
@@ -504,17 +501,18 @@ class INVideoExportController: BFBaseViewController {
|
|
|
|
|
|
func resetViewStatus() {
|
|
func resetViewStatus() {
|
|
|
|
|
|
- self.isExporting = false
|
|
|
|
|
|
+ isExporting = false
|
|
// sself.bottomView.isHidden = false
|
|
// sself.bottomView.isHidden = false
|
|
|
|
|
|
- self.saveAllBtn.setImage(UIImage(named: "export_saveall_n"), for: .normal)
|
|
|
|
- self.saveOnlyBtn.setImage(UIImage(named: "export_saveonly_n"), for: .normal)
|
|
|
|
|
|
+ saveAllBtn.setImage(UIImage(named: "export_saveall_n"), for: .normal)
|
|
|
|
+ saveOnlyBtn.setImage(UIImage(named: "export_saveonly_n"), for: .normal)
|
|
|
|
|
|
- self.saveToPhotoBtn.isEnabled = true
|
|
|
|
- self.completeBtn.isEnabled = true
|
|
|
|
|
|
+ saveToPhotoBtn.isEnabled = true
|
|
|
|
+ saveToPhotoBtn.alpha = 1
|
|
|
|
+ completeBtn.isEnabled = true
|
|
|
|
|
|
- self.progressView.isHidden = true
|
|
|
|
- self.progressL.isHidden = true
|
|
|
|
|
|
+ progressView.isHidden = true
|
|
|
|
+ progressL.isHidden = true
|
|
}
|
|
}
|
|
// MARK: - 按钮事件
|
|
// MARK: - 按钮事件
|
|
@objc func retryAction(sender:UIButton){
|
|
@objc func retryAction(sender:UIButton){
|
|
@@ -549,6 +547,7 @@ class INVideoExportController: BFBaseViewController {
|
|
}
|
|
}
|
|
|
|
|
|
saveToPhotoBtn.isEnabled = false
|
|
saveToPhotoBtn.isEnabled = false
|
|
|
|
+ saveToPhotoBtn.alpha = 0.7
|
|
completeBtn.isEnabled = false
|
|
completeBtn.isEnabled = false
|
|
|
|
|
|
progressView.isHidden = false
|
|
progressView.isHidden = false
|