소스 검색

背景点击

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)