|
@@ -173,6 +173,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
btn.addCorner(corner: 6)
|
|
|
btn.adjustsImageWhenHighlighted = false
|
|
|
btn.addTarget(self, action: #selector(startRecord), for: .touchDown)
|
|
|
+ btn.addTarget(self, action: #selector(endRecord), for: .touchCancel)
|
|
|
btn.addTarget(self, action: #selector(endRecord), for: .touchUpInside)
|
|
|
|
|
|
return btn
|