|
@@ -316,7 +316,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
|
btn.adjustsImageWhenHighlighted = false
|
|
|
btn.addTarget(self, action: #selector(startRecord), for: .touchDown)
|
|
|
-// btn.addTarget(self, action: #selector(endRecord), for: .touchUpInside)
|
|
|
+ btn.addTarget(self, action: #selector(endRecord), for: .touchUpInside)
|
|
|
btn.isEnabled = false
|
|
|
return btn
|
|
|
}()
|
|
@@ -1264,9 +1264,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
UIApplication.shared.keyWindow?.isUserInteractionEnabled = false
|
|
|
|
|
|
- DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
|
|
|
- self.endRecord()
|
|
|
- }
|
|
|
+// DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
|
|
|
+// self.endRecord()
|
|
|
+// }
|
|
|
|
|
|
if !avatarView.isHidden {
|
|
|
avatarView.beginRecord()
|