|
@@ -10,6 +10,7 @@ import BFUIKit
|
|
|
import Photos
|
|
|
import BFRecordScreenKit
|
|
|
import BFCommonKit
|
|
|
+import UIKit
|
|
|
|
|
|
class INIntrocudeController: BFBaseViewController {
|
|
|
|
|
@@ -76,7 +77,29 @@ class INIntrocudeController: BFBaseViewController {
|
|
|
|
|
|
|
|
|
override func backBtnClick() {
|
|
|
- recordScreenVC.backBtnClick()
|
|
|
+ let remindData = BFBaseModel()
|
|
|
+ remindData.summary = "退出将不会保存当前操作"
|
|
|
+ let alertV = BFRemindView(frame: view.bounds)
|
|
|
+ alertV.isBanned = true
|
|
|
+ alertV.confirmBtn.setTitle("不退出", for: .normal)
|
|
|
+ alertV.confirmBtn.titleLabel?.font = UIFont.systemFont(ofSize: 20, weight: .medium)
|
|
|
+ alertV.cancelBtn.setTitle("确认退出", for: .normal)
|
|
|
+ alertV.cancelBtn.titleLabel?.font = UIFont.systemFont(ofSize: 20, weight: .medium)
|
|
|
+ alertV.contentLab.font = UIFont.systemFont(ofSize: 20, weight: .medium)
|
|
|
+ alertV.remindData = remindData
|
|
|
+ alertV.confirmBtn.setTitleColor(UIColor.black, for: .normal)
|
|
|
+ alertV.cancelBtn.setTitleColor(UIColor.red, for: .normal)
|
|
|
+ alertV.contentLab.textColor = .black
|
|
|
+ alertV.remindBlock = { [weak self] item, _ in
|
|
|
+ if item.tag == 1 {
|
|
|
+ self?.recordScreenVC.backBtnClick()
|
|
|
+ self?.super_back()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ UIApplication.shared.keyWindow?.addSubview(alertV)
|
|
|
+
|
|
|
+ }
|
|
|
+ private func super_back() {
|
|
|
super.backBtnClick()
|
|
|
}
|
|
|
|