소스 검색

防止连续点击

jsonwang 3 년 전
부모
커밋
9573f6e68d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Introduce/Record/INRecorderController.swift

+ 2 - 1
Introduce/Record/INRecorderController.swift

@@ -37,6 +37,7 @@ class INRecorderController: BFBaseViewController {
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(cameraBtnAction), for: .touchUpInside)
+        btn.eventInterval = 0.5
 
         return btn
     }()
@@ -48,7 +49,7 @@ class INRecorderController: BFBaseViewController {
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)
-        
+        btn.eventInterval = 0.5
         return btn
     }()