瀏覽代碼

背景点击

jsonwang 3 年之前
父節點
當前提交
0c87527b89
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      BFRecordScreenKit/Classes/RecordScreen/View/BFVoiceSettingView.swift

+ 3 - 1
BFRecordScreenKit/Classes/RecordScreen/View/BFVoiceSettingView.swift

@@ -149,7 +149,9 @@ class BFVoiceSettingView: UIView {
         super.init(frame: frame)
 
         backgroundColor = .clear
-        addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(okBtnAction)))
+        let v = UIView.init(frame: CGRect.init(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
+        addSubview(v)
+        v.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(okBtnAction)))
         backView.backgroundColor = UIColor.hexColor(hexadecimal: "#121212")
 
         addSubview(backView)